News for hackers. Stuff that matters.
Re:Parsing JSON is a Minefield by hueving on Monday April 23, 2018 @01:33AM (#16900743)
>What would help here is if Alice generated a clean copy of what she thinks she received, and serialized that.

I think you just suggested the same thing the OP did.

Re:Parsing JSON is a Minefield by Someone on Monday April 23, 2018 @01:58AM (#16900855)
Rereading it, you may be right. I read “what was parsed” as “as parsed by the json parser”, but chances are the OP meant “by the application layer”.

I didnkt read it that way because I don’t see that often in my job. Programs there typically know just enough about the format to do their job, and that job doesn’t include “watch out for external threats” (and they don’t all just use some common library that _does_ know the ins and outs of the format because they’re written in different languages. Also, we don’t generate libraries for each language (as would be common if the format were XML) because the json culture doesn’t think json schema is a good idea)

Re:Parsing JSON is a Minefield by toast0 on Monday April 23, 2018 @01:39PM (#16905608)
Actually, I hadn't meant that, although on reflection, it's the right thing to have meant. This stuff is hard!