Menu

#17 Permissive Reader

Unstable (example)
closed-fixed
nobody
None
5
2015-03-06
2013-03-04
Clay Wood
No

This patch adds a few extra reader features which would allow the reader to accept non-standard, but somewhat common JSON strings. In particular:

1) Features::allowDroppedNullPlaceholders_ will accept JSON with 'null' tokens that have been stripped. The writer already has an option for creating JSON without nulls. This would provide parity between the two.

2) Features::allowNumericKeys_ will accept JSON where the objects may have numeric keys in addition to the standard string keys.

I've currently made these both default to false, even in Features::all() which says that it allows all features. Please feel free to change this if you think it should use these as well.

Discussion

  • Clay Wood

    Clay Wood - 2013-03-04

    Patch for permissive reading code.

     
  • Christopher Dunn

    Patch was accepted. Repo is now at: https://github.com/open-source-parsers/jsoncpp

     
  • Christopher Dunn

    • status: open --> closed-fixed
    • Group: --> Unstable (example)
     

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.