News for hackers. Stuff that matters.
Re:Parsing JSON is a Minefield by mort96 on Wednesday October 26, 2016 @04:45PM (#12800339)
Wouldn't it have been easier to use the C# JSON parser, and then later walk the tree it creates and convert it into a more sane data structure that way?
Re:Parsing JSON is a Minefield by RangerScience on Wednesday October 26, 2016 @09:51PM (#12802329)
Hmm. Yeah, it definitely would have been. All I can say is - I was frustrated with the way someone functioned, and rather than patch it, I "fixed" it. Where "fixed" is less complete and stable and...

Well, I also wanted a YAML parser, and had the weird need to handle JSON inside XML (oh, industrial sector, and your SOAP), and to not care about things like trailing commas, and then at some point to deal with weirdly large amounts of data.

Each iteration only took a couple of days, and I learned a bunch about tokenizing things, and then dealing with token streams.