Hi,
following up on a chain of issuses[1],[2] - there is a parsing strictness issue in json-c where invalid literals are parsed as valid JSON:
is not a valid JSON [3] but json-c seems to extract the first digits breaking on first invalid character and then returning the parsed part as correct result (this is observed behaviour through PHP inclusion; I haven't built and tested json-c directly yet).
[1] remicollet/pecl-json-c#5
[2] https://bugs.php.net/bug.php?id=65499
[3] http://www.ietf.org/rfc/rfc4627.txt - section 2.1, 2.4