staxon icon indicating copy to clipboard operation
staxon copied to clipboard

Parsing: Impossible to differ between NULL and Empty Object

Open flappingeagle opened this issue 5 years ago • 0 comments

Given following json:

{
	"tests": [
		{
			"o": null
		},
		{
			"o": {
				
			}
		}
	]
}

the following events are given for the parser for the above example:

START_DOCUMENT
PROCESSING_INSTRUCTION (xml-multiple:tests)
START_ELEMENT (tests)
START_ELEMENT (o)
END_ELEMENT (o)
END_ELEMENT (tests)
START_ELEMENT (tests)
START_ELEMENT (o)
END_ELEMENT (o)
END_ELEMENT (tests)
END_DOCUMENT

how can i differ between "o=null" and "o=Empty-Object" with the staxon-parser?

flappingeagle avatar Apr 29 '19 12:04 flappingeagle