JSON: why does oXygen say this is valid JSON?

Oxygen general issues.
mhGLEIF
Posts: 43
Joined: Tue Jul 26, 2016 6:31 pm

JSON: why does oXygen say this is valid JSON?

Post 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]
mhGLEIF
Posts: 43
Joined: Tue Jul 26, 2016 6:31 pm

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

Post 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.
tavy
Posts: 365
Joined: Thu Jul 01, 2004 12:29 pm

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

Post 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
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
sorin_carbunaru
Posts: 402
Joined: Mon May 09, 2016 9:37 am

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

Post 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
Post Reply