Menu

#71 Strict mode passes null as input Json

0.5.0
closed-wont-fix
None
3
2015-03-06
2014-11-10
Gaurav
No

I Provided below as input json:

null

It passes in both strict & all mode. As, per strict mode code, it is allowed.
But If i check http://jsonlint.com/, there is below error:

Parse error on line 1:
null
^
Expecting '{', '['

Is fix needed ?

Discussion

  • Christopher Dunn

    jsonlint is definitely wrong here. However, IIRC, the current version of jsoncpp might crash on null now, which somebody else considered a bug.

    You can find the latest code at GitHub.

     
  • Christopher Dunn

    • status: open --> closed-wont-fix
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.