Page 1 of 1

JSON related

Posted: Mon Sep 05, 2011 3:19 pm
by PaulHermans
I would like to see implemented:
- validate JSON with JSON schema
- generate JSON schema from JSON instance.


Paul

Re: JSON related

Posted: Mon Sep 05, 2011 5:19 pm
by Radu
Hi Paul,

Thanks for the suggestion.

We'll consider adding support for JSON validation based on a JSON schema in a future release of Oxygen.
Right now the JSON validation in Oxygen is more like a "well-formed" check.
If you know by any chance, is there a way to specify in the JSON file a reference to the JSON schema which should be used for validation (like there is for XML)?

Could you tell us more about your usual workflow? Do you transform XML to JSON?

Regards,
Radu

Re: JSON related

Posted: Mon Sep 05, 2011 5:36 pm
by PaulHermans
Hi Radu,

I'm not aware of a mechanism to associate a JSON file with a schema.

My current workflow is that from a giant XML file I generate via XSLT zillion of JSON files to be uploaded in a repository.

Paul

Re: JSON related

Posted: Wed Jul 31, 2013 11:47 am
by roos
Json-Schema (currently draft 0.4) is exactly what I personally would like to see in Oxygen. There are already Json-Schema validators available for a whole lot of programming languages, like Java, Groovy, etc.

Re: JSON related

Posted: Mon Aug 05, 2013 6:11 pm
by adrian
Hi,

We will consider supporting this in the long term.

Meanwhile, if you have a command line validator tool for Json-Schema, you can configure it as a custom validator in Oxygen:
1. Options > Preferences, Editor / Custom Validation Engines, New.
2. Press the + from the Associated editors field and select JSON Editor.
3. Configure the working directory and executable path. In the Command line arguments for detected schemas section specify the required command line arguments and use the ${cf} editor variable as the path that points to the current file.
4. The custom validator appears in the Custom Validation Engines toolbar. You should see the name you gave it directly in the Oxygen toolbar.
5. When you run this custom validator (by clicking it in the toolbar) you will obtain the result in the results panel at the bottom of the editor.

Regards,
Adrian

Re: JSON related

Posted: Wed Aug 26, 2015 4:27 pm
by trondhuso
What is the status for json schema-support?

We are creating a json format and a schema to og With it. We would like to validate the json created based on the schema.

best
trond

Re: JSON related

Posted: Thu Aug 27, 2015 10:53 am
by mihaela
Hi Trond,

The JSON validation based on a JSON schema is still on our TODO list but I have added also your vote to increase its priority.
We will let you know when it will be available.

Best Regards,

Mihaela
--
Mihaela Calotescu
<oXygen/> XML Editor

Re: JSON related

Posted: Wed Oct 07, 2015 4:16 pm
by fleert
mihaela wrote:The JSON validation based on a JSON schema is still on our TODO list but I have added also your vote to increase its priority.
We will let you know when it will be available.


Add my vote as well! :D

regards
Theun

Re: JSON related

Posted: Thu May 26, 2016 2:46 am
by grmartin
To be honest i would love this as well. There is no document information standard in JSON really, but i could see a simple side-binding file also stored in json along side it... As an index of files and their schema assignments, then we wouldnt have to modify the contents and perhaps break the other parsing mechanisms to do it.

The ability to author schemas would be nice as well.

Itll make this tool something many of us Mobile developers could really use. Mobile doesnt use much XML, JSON is preferred simply because it is less verbose.

Re: JSON related

Posted: Thu May 26, 2016 8:58 am
by Radu
Hi,

Thanks for the feedback, I added your vote for both improvements (JSON validation with schema and visual schema editing).

Regards,
Radu

Re: JSON related

Posted: Mon Aug 01, 2016 4:33 am
by msqr
Hello,

I would also like to express my interest in built-in JSON validation support using http://json-schema.org/ style schemas.

Thank you!

Re: JSON related

Posted: Mon Aug 01, 2016 8:15 am
by Radu
Hi,

I will add your feedback to the opened issue. We do not have enough time to do this for Oxygen 18.1 (this Autumn) but maybe we'll have some more time to approach JSON validation with schema in the Oxygen 19.x series next year.

Regards,
Radu

Re: JSON related

Posted: Mon Nov 14, 2016 6:05 am
by avlad
would be also create to have support of JSONPath queries - similar as it for XML

Re: JSON related

Posted: Mon Nov 14, 2016 10:41 am
by Radu
Hi,

Actually the XPath toolbar remains enabled when you open a JSON document so you can run an XPath over the JSON, as if it would be an XML structure. This might be different than JSONPath in the way it operates though.

Regards,
Radu

Re: JSON related

Posted: Tue Jul 25, 2017 1:43 am
by eddo888
I would also like to request json schema validation and json schema design
REST is here to stay.
while you are at it could you please add jsonpath, cf xpath for json

Re: JSON related

Posted: Tue Jul 25, 2017 7:42 am
by Radu
Hi,

We have some internal issues already registered for all your requests. I will add your vote for them and we'll update this forum thread when we manage to implement them.

Regards,
Radu

Re: JSON related

Posted: Fri Oct 20, 2017 5:02 pm
by lcahlander
I would also like to see JSON Schema support.

Re: JSON related

Posted: Mon Oct 23, 2017 9:52 am
by sorin_carbunaru
Hello lcahlander,

I added your vote for this feature.

Best wishes,
Sorin Carbunaru
oXygen XML

Re: JSON related

Posted: Tue Jan 23, 2018 1:15 am
by Pr1Smiley
Any reason we are STILL having to vote up for JSON Schema after 7 years

Re: JSON related

Posted: Tue Jan 23, 2018 9:54 am
by Radu
Hi,

The reason is that like any other tool makers we have limited human resources and our main focus is XML, XSLT technologies and improving the application for technical writers.
We do want to implement JSON schema, we had an attempt several years ago but had some trouble deciding what JSON validation tool to use. For example the tool we found reported errors but did not precisely report their line/column location making it almost useless.
What tools are you using right now for JSON schema-based validation? Does it report line-column information?
Also if you can provide JSON samples (schema + instances) it would help us, we do not use much JSON internally so knowing how people out there are using it would be a big help. If you want to provide extra details you can also contact us directly via email (support@oxygenxml.com).

Regards,
Radu