News for hackers. Stuff that matters.
Re:Show HN: Gojay – Performant JSON encoder/decoder for Golang by edhelas on Sunday May 20, 2018 @10:55AM (#17112960)
How does it compare with encoding the same kind of data in a XML stream?
Re:Show HN: Gojay – Performant JSON encoder/decoder for Golang by laumars on Sunday May 20, 2018 @11:20AM (#17113108)
That would depend on the XML interface you used. I don't really rate the XML parser in the Go core library much. But I think as much if that is my own personal biased against XML.
Re:Show HN: Gojay – Performant JSON encoder/decoder for Golang by dullgiulio on Sunday May 20, 2018 @01:59PM (#17113973)
Encoding XML to a structure makes little sense, as there is not a direct map between tags, attributes and struct fields. Something like a DOM makes lots more sense, but it is also much more verbose. This is the big reason to prefer JSON over XML.
Re:Show HN: Gojay – Performant JSON encoder/decoder for Golang by laumars on Sunday May 20, 2018 @03:08PM (#17114285)
Yeah, that was the point I was hinting at :)