Page 1 of 1

JSON: why does oXygen say this is valid JSON?

Posted: Thu Apr 26, 2018 2:57 pm
by mhGLEIF

Code: Select all

["Name", "Session", "Score", "Completed"]
["Gilbert", "2013", 24, true]
["Alexa", "2013", 29, true]
["May", "2012B", 14, false]
["Deloise", "2012A", 19, true]

Re: JSON: why does oXygen say this is valid JSON?

Posted: Thu Apr 26, 2018 2:58 pm
by mhGLEIF
mhGLEIF wrote:

Code: Select all

["Name", "Session", "Score", "Completed"]
["Gilbert", "2013", 24, true]
["Alexa", "2013", 29, true]
["May", "2012B", 14, false]
["Deloise", "2012A", 19, true]
For info, this is from http://jsonlines.org/examples/.

None of the other examples at that site appear to be valid JSON.

Re: JSON: why does oXygen say this is valid JSON?

Posted: Thu Apr 26, 2018 3:42 pm
by tavy
Hello,

Thank you for your feedback.
In a JSON file you can have an object, an array, or a simple value, see http://json.org/.
The example that you added should be reported as invalid because there are multiple arrays. It seems that oXygen validates only the first array in this case. I will add an issue on our issue tracker to correct this problem. We will notify you when this problem will be solved.

Best Regards,
Octavian

Re: JSON: why does oXygen say this is valid JSON?

Posted: Mon Jun 18, 2018 4:55 pm
by sorin_carbunaru
Hello,

Just wanted to let you know that the reported problem has been fixed in the recently released oXygen 20.1.

Best wishes,
Sorin Carbunaru
oXygen XML