JSON related

Are you missing a feature? Request its implementation here.
PaulHermans
Posts: 82
Joined: Sat Jan 13, 2007 5:39 pm
Location: Belgium

JSON related

Post by PaulHermans »

I would like to see implemented:
- validate JSON with JSON schema
- generate JSON schema from JSON instance.


Paul
Paul
Radu
Posts: 9041
Joined: Fri Jul 09, 2004 5:18 pm

Re: JSON related

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
PaulHermans
Posts: 82
Joined: Sat Jan 13, 2007 5:39 pm
Location: Belgium

Re: JSON related

Post 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
Paul
roos
Posts: 2
Joined: Fri Jun 07, 2013 10:39 am

Re: JSON related

Post 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.
adrian
Posts: 2853
Joined: Tue May 17, 2005 4:01 pm

Re: JSON related

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
trondhuso
Posts: 2
Joined: Sun Sep 15, 2013 11:09 pm

Re: JSON related

Post 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
mihaela
Posts: 490
Joined: Wed May 20, 2009 2:40 pm

Re: JSON related

Post 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
Mihaela Calotescu
http://www.oxygenxml.com
fleert
Posts: 9
Joined: Tue Oct 30, 2012 10:56 pm

Re: JSON related

Post 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
grmartin
Posts: 1
Joined: Thu May 26, 2016 2:40 am

Re: JSON related

Post 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.
Radu
Posts: 9041
Joined: Fri Jul 09, 2004 5:18 pm

Re: JSON related

Post by Radu »

Hi,

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

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
msqr
Posts: 15
Joined: Thu May 19, 2005 8:19 pm

Re: JSON related

Post 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!
Radu
Posts: 9041
Joined: Fri Jul 09, 2004 5:18 pm

Re: JSON related

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
avlad
Posts: 1
Joined: Mon Nov 14, 2016 6:03 am

Re: JSON related

Post by avlad »

would be also create to have support of JSONPath queries - similar as it for XML
Radu
Posts: 9041
Joined: Fri Jul 09, 2004 5:18 pm

Re: JSON related

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
eddo888
Posts: 1
Joined: Tue Jul 25, 2017 1:40 am

Re: JSON related

Post 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
Radu
Posts: 9041
Joined: Fri Jul 09, 2004 5:18 pm

Re: JSON related

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
lcahlander
Posts: 4
Joined: Tue Nov 03, 2009 6:31 pm

Re: JSON related

Post by lcahlander »

I would also like to see JSON Schema support.
sorin_carbunaru
Posts: 402
Joined: Mon May 09, 2016 9:37 am

Re: JSON related

Post by sorin_carbunaru »

Hello lcahlander,

I added your vote for this feature.

Best wishes,
Sorin Carbunaru
oXygen XML
Pr1Smiley
Posts: 1
Joined: Tue Jan 23, 2018 1:13 am

Re: JSON related

Post by Pr1Smiley »

Any reason we are STILL having to vote up for JSON Schema after 7 years
Radu
Posts: 9041
Joined: Fri Jul 09, 2004 5:18 pm

Re: JSON related

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
tavy
Posts: 364
Joined: Thu Jul 01, 2004 12:29 pm

Re: JSON related

Post by tavy »

Hello,

We just released version 20.1 of oXygen XML Editor that includes new editing features and validation support for JSON documents:
- Validate JSON documents against JSON Schema
- Validate JSON Schema according to the specification
- Batch validate JSON documents
- New document templates to create JSON schemas
- Navigate references in JSON documents
- JSON format and indent improvements

https://www.oxygenxml.com/xml_editor/wh ... l#20.1JSON

Best Regards,
Octavian
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
tavy
Posts: 364
Joined: Thu Jul 01, 2004 12:29 pm

Re: JSON related

Post by tavy »

Hello,

We recently released the version 24.0 of Oxygen suite. This major release introduces a new specialized editor for JSON Schema documents and it includes an innovative visual schema diagram editor.

You can find more details on our website: https://www.oxygenxml.com/json_schema_e ... esign_mode

The new specialized JSON Schema editor introduces a Design mode that represents an expressive diagram editor that is helpful for visualizing, editing, and understanding JSON Schemas.
Video demo: https://www.oxygenxml.com/demo/introduc ... esign.html

A webinar on 'The New JSON Schema Diagram Editor' is also being prepared. I invite you on this occasion to register and participate:
https://www.oxygenxml.com/events/2021/w ... ditor.html

For the complete list of features, go to
https://www.oxygenxml.com/xml_editor/whats_new.html

Best Regards,
Octavian
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply