3 ms·
> Parsing is simple It's obviously not simple - no two parsers have the same behaviour! http://seriot.ch/parsing_json.php http://seriot.ch/parsing_json.php
by chrisseaton 7y ago
> Parsing is simple
It's obviously not simple - no two parsers have the same behaviour!
http://seriot.ch/parsing_json.php http://seriot.ch/parsing_json.php
- jstimpfle 7y agoTip, if you want to defeat an argument by quoting only three words, make sure you're talking about the same thing. To be clear, I was not talking about lexing JSON, but about how to configure a "meta-parser" like this library to actually convert some JSON to concrete application data objects. The point of contention was, "should we really use such a massive library or mustn't it be sufficient to have a simple bag of parsing primitives (which we can use to actually build the right thing)". And I'm not a fan of JSON either...
- chrisseaton 7y agoParsing JSON is not simple - not even when you know the structure you're parsing against. For example that reference shows even parsing numbers is not the same everywhere, so that applies even when the structure is as expected. > Tip, if you want to defeat an argument by quoting only three words, make sure you're talking about the same thing. Please don't be snarky - if you disagree say so and why.
- jstimpfle 7y ago> if you disagree say so and why. My apologies. Just did that - I'm habitually a post-then-improve type of commenter.