Jump to content

Parsing bug with array containing empty object

Chris Virgona

Recommended Posts

I'm using "Unflatten From JSON String" with no type input wired.

The following JSON string causes a parsing error:
{"arr1": [
{ "key1": 1, "key2": {} }

The trigger for the error seems to be the empty object under "key2".

Interestingly when "key1" is removed the empty object no longer triggers an error:
{"arr1": [
{ "key2": {} }

Thanks for the excellent JSON tool by the way. This is the first parsing error I have observed after many years of use!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.