Menu

#4 Allow extra comma

closed
nobody
None
5
2007-04-07
2006-11-02
No

While technically not valid Json, it would be helpful
if the last element in a list of object could have a
trailing ",".

[
"foo",
"bar",
]

This would be for reading, not for writing. The output
should always be valid Json, but a bit of leniency on
the input would help. This is, afterall, valid Python,
and it makes cut-and-paste into the Json file much simpler.

Discussion

  • Christopher Dunn

    • status: open --> pending
     
  • Christopher Dunn

    Logged In: YES
    user_id=1540698
    Originator: YES

    I see this is difficult the way readObject() and readArray() are written. Oh, well. It would be nice someday...

     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed
     

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.