sed '
s/,/&\
/g;
/^$/d;
s/^[{][^}]/\
&/g;
/\"/s/,/<##eol##>/g;
s/ *//;
' |tr '\012' '\040' |sed '
s/<##eol##>/\
/g;
s/\[/\
&\
/;
s/\]/\
&\
/;
s/, /, /g;
'
But any difficuly I have dealing with JSON I attribute to the pervasive use of JSON, not sed.
But does it necessaruly tell you anything about the underlying structure and the performance of a database?
If we drop that acronym, "SQL", and still provide a database that handles relational queries (but perhaps uses a different but equally capable language), does that matter? If yes, how much? And why?