News for hackers. Stuff that matters.
Re:RSS mistakes: let's not make them again by ancarda on Wednesday July 17, 2013 @02:49PM (#6059448)
JSON is smaller and easier to parse in JavaScript. Aside from that, there are no real advantages IMO.
Re:RSS mistakes: let's not make them again by MatthewPhillips on Wednesday July 17, 2013 @03:03PM (#6059541)
Parsing RSS/Atom is a solved problem, don't do it yourself, use libraries.
Re:RSS mistakes: let's not make them again by finnw on Wednesday July 17, 2013 @04:13PM (#6059976)
Parsing JSON is also a solved problem. And JSON is also easier for humans to read than XML.
Re:RSS mistakes: let's not make them again by bct on Wednesday July 17, 2013 @04:22PM (#6060017)
> JSON is also easier for humans to read than XML.

That's extremely debatable.

Re:RSS mistakes: let's not make them again by ancarda on Wednesday July 17, 2013 @04:22PM (#6060013)
Writing JSON is also easier by hand than XML, or at-least it is for me. Any time I'm planning a data structure I always use JSON since it's so well structured.

XML is quite loose, unless I use plist theres no data types which is both an advantage and a disadvantage.

Re:RSS mistakes: let's not make them again by jarek on Wednesday July 17, 2013 @04:16PM (#6059992)
But is parsing an RSS-like format that uses JSON a solved problem?
Re:RSS mistakes: let's not make them again by dragonwriter on Wednesday July 17, 2013 @04:36PM (#6060079)
That's just parsing JSON and interpreting the data. Since parsing JSON and producing arbitrary object models is a solved problem, parsing an x-like format that uses JSON is also a solved problem for all x (developing the object model to use for it is an issue, perhaps, but you have to have that before you can have any serialization format, so that's not a distinguishing problem between different approaches.)

Note that I am not, here, endorsing JSON over other alternatives; the same is obviously true of XML, HTML, YAML, or lots of other potential formats.

Re:RSS mistakes: let's not make them again by jarek on Wednesday July 17, 2013 @05:20PM (#6060259)
Right, the only point I'm making is that ease of parsing JSON shouldn't count as a factor against RSS since RSS parsing is already more done than parsing any JSON-powered RSS alternative as the object model is already defined and implemented.