News for hackers. Stuff that matters.
Re:HTTP: , FTP:, and Dict:? by dspillett on Sunday September 22, 2024 @09:47AM (#41617062)
> Makes me think it's a shame that making a json based protocol is so much…

Maybe I'm not the human you are thinking of, being a techie, but I find a well structured JSON response, as long as it isn't overly verbose and is presented in open form rather than minified, to be a good compromise of human readable and easy to digest programmatically.

Re:HTTP: , FTP:, and Dict:? by marcosdumay on Sunday September 22, 2024 @11:12AM (#41617611)
The legibility is probably one of the main reasons JSON got adopted. XML can be made to not look too bad, but in SOAP it must be unreadable, so everybody was looking into fixing this.
Re:HTTP: , FTP:, and Dict:? by xmlmann on Sunday September 22, 2024 @12:59PM (#41618288)
XML has a sweet advantage though. It can be styled in the browser. For example a sitemap that works for Google, OpenAI, &c. and is human readable looking like a web page.

Example:

https://www.wpbeginner.com/sitemap.xml

Re:HTTP: , FTP:, and Dict:? by immibis on Sunday September 22, 2024 @01:14PM (#41618396)
This is fun, but in reality, not all that useful.

Except you can impress other nerds when they "view source" and there's not an HTML tag in sight.

Re:HTTP: , FTP:, and Dict:? by immibis on Sunday September 22, 2024 @01:02PM (#41618319)
XML is a language designed for markup (i.e. text formatting), and fitting structured documents into it creates an impedance mismatch.

Dictionary definitions may be considered as marked-up documents, so it may work. The overall structure of the dictionary is not.

Re:HTTP: , FTP:, and Dict:? by keepamovin on Sunday September 22, 2024 @11:14PM (#41622122)
Yeah, but JSON has the vulnerability that it will tend to become like an overgrown garden over time, because it can. The type of TCP <code> <response> <text> protocols the GP talks about have the benefit of their restrictions and are definitely a better balance (human / machine), and more stable.