Skip to content

Extra arrayElement after object in array #7

Description

@e-tobi

Having this json:

{"foo":[{"bar": "baz"}, null]}

I get this sequence of events:

  • JsonEventType.beginObject : null
  • JsonEventType.propertyName : foo
  • JsonEventType.beginArray : null
  • JsonEventType.beginObject : null
  • JsonEventType.propertyName : bar
  • JsonEventType.propertyValue : baz
  • JsonEventType.endObject : null
  • JsonEventType.arrayElement : null
  • JsonEventType.arrayElement : null
  • JsonEventType.endArray : null
  • JsonEventType.propertyValue : null
  • JsonEventType.endObject : null

After the object in the array an extra arrayElement with value null is emitted. This can't be ignored because there actually might be a null in the array.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions