Re:SQLite Release 3.42.0
by fiddlerwoaroof on Wednesday May 17, 2023 @03:17PM
(#35979912)
Don’t use that sort of implementation for a pretty printer is my point. I’m not saying you can pretty print json that has been parsed by a generic parser, but that you can write a parser that can pretty print arbitrary json.
Re:SQLite Release 3.42.0
by cryptonector on Thursday May 18, 2023 @11:12AM
(#35989092)
But pretty-printing is not all that one does with JSON. If that were all one ever did with JSON then JSON wouldn't exist.
Many implementations parse objects into hash tables and lose duplicates and even order of appearance of name/value pairs, and all of that is allowed. Such implementations will not be able to keep relative order of comments.