News for hackers. Stuff that matters.
Re:Parsing JSON Is a Minefield (2018) by jakear on Saturday August 17, 2019 @01:05PM (#20724953)
A problem we're finding with those is the massive runtime dependency you get trying to include protobuf in browser.
Re:Parsing JSON Is a Minefield (2018) by rapsey on Saturday August 17, 2019 @01:20PM (#20725033)
In that case json can be used as an addon. An optional input/output that a number of protobuff libraries support.

One should keep schema in protocol buffers and encourage its use for all but browsers.

Re:Parsing JSON Is a Minefield (2018) by izacus on Saturday August 17, 2019 @01:22PM (#20725041)
The minimal parser seems to be 6.5kb, which seems significantly smaller than most of other JS dependencies apps use these days.
Re:Parsing JSON Is a Minefield (2018) by jakear on Saturday August 17, 2019 @01:35PM (#20725140)
We make dependencies, so staying small is more important for us than for end-users.