Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@Pyjong yeah, i mean an example for visible comments within machine read data.
That you as human can edit JSON is just a plus, not something you should rely on imo. -
donuts236724yNot exactly true.... Shitty devs remain shitty... Most programming languages have comments... Most devs never use them... It at least well enough so that other ppl can understand them
-
@iSwimInTheC Yes, it's overhead is far higher in both increased size of payload and increased complexity of decoding. These two factors make it a demonstrably interior structure for data transmission.
-
@iSwimInTheC The scenario on topic here refers to JSON, as such I was specifying the use of XML in data transmission like in SOAP.
-
@PlatinumFire ah, yes you are right. In terms of structure between json and XML, does XML arguably have better structuring. Especially when dealing with nesting?
-
@dder if it was part of the official JSON standard, but as it is right now... Ehhhhh
Also I'd rather not have // for comments, but only /* */ -
What would comments in JSON files actually say?
Doesn't a comment above a not descriptive enough key in your config to be read by the machine - not you - show the lack of proper documentation in form of a readme or shit like that?
Take php.ini as an example. This file is more comment then config, wtf is this.
Related Rants
Society if the JSON standards included proper comments
joke/meme
json