▲ | EE84M3i 15 hours ago | ||||||||||||||||||||||||||||||||||
This is interesting, but how does this do on the conformance tests? | |||||||||||||||||||||||||||||||||||
▲ | LegionMammal978 14 hours ago | parent | next [-] | ||||||||||||||||||||||||||||||||||
It doesn't seem to have much in the way of validation, e.g., it will indiscriminately let you use either ']' or '}' to terminate an object or array. Also, it's more lenient than RFC or json.org JSON in allowing '\v' for whitespace. I'd treat it more as a "data extractor for known-correct JSON". But even then, rolling your own string or number parser could get annoying, unless the producer agrees on a subset of JSON syntax. | |||||||||||||||||||||||||||||||||||
▲ | catlifeonmars 14 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
You know what would really be useful is a conformance test based on a particular real implementation. What I mean by this is a subset (superset?) that exactly matches the parsing behavior of a specific target parsing library. Why is this useful? To avoid the class of vulnerabilities that rely on the same JSON being handled differently by two different parsers (you can exploit this to get around an authorization layer, for example). | |||||||||||||||||||||||||||||||||||
▲ | Lucas_Marchetti 15 hours ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||
Real question, does it manage nested objects ? | |||||||||||||||||||||||||||||||||||
|