3 ms·
"How do I convert a JSON object to CSV?" is a common broad question I see all the time. There is no standard conversion because they are completely different da
by ythl 10y ago
"How do I convert a JSON object to CSV?" is a common broad question I see all the time. There is no standard conversion because they are completely different data structures.
- sanderjd 10y agoAnd yet, answers with demonstrations of the many ways to do so are extremely useful! Sometimes I think the side of this debate you land on is something of a personality test: do you seek order above all else or do you embrace and try to grapple with chaos?
- Kalium 10y agoSuch a question is best addressed in a personalized way, starting from what capabilities the asker has and what they are trying to accomplish. Offering multiple viable technical solutions to a person who asks such a question is quite likely to leave them confused and adrift as most of the answers are not comprehended. So, you're absolutely correct. Demonstrations of the many ways to do so are extremely useful to many people! It is, however, highly likely that few - if any - will be useful to the person asking the question. You're very right - this is a personality test. Do you try to jump directly to trying to answer an apparently-simple question, or do you cautiously consider if the simple question hides complex depths (deeply nested structures, arrays of variable length, etc.) that make a simple and straightforward answer difficult?