JSON related

Are you missing a feature? Request it's implementation here.
PaulHermans
Posts: 82
Location: Belgium

JSON related

Mon Sep 05, 2011 3:19 pm

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


Paul
Paul
Radu
Posts: 5088

Re: JSON related

Mon Sep 05, 2011 5:19 pm

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
Location: Belgium

Re: JSON related

Mon Sep 05, 2011 5:36 pm

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

Re: JSON related

Wed Jul 31, 2013 11:47 am

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: 2326

Re: JSON related

Mon Aug 05, 2013 6:11 pm

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

Re: JSON related

Wed Aug 26, 2015 4:27 pm

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: 168

Re: JSON related

Thu Aug 27, 2015 10:53 am

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
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
fleert
Posts: 9

Re: JSON related

Wed Oct 07, 2015 4:16 pm

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

Re: JSON related

Thu May 26, 2016 2:46 am

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: 5088

Re: JSON related

Thu May 26, 2016 8:58 am

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

Re: JSON related

Mon Aug 01, 2016 4:33 am

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: 5088

Re: JSON related

Mon Aug 01, 2016 8:15 am

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

Re: JSON related

Mon Nov 14, 2016 6:05 am

would be also create to have support of JSONPath queries - similar as it for XML
Radu
Posts: 5088

Re: JSON related

Mon Nov 14, 2016 10:41 am

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

Re: JSON related

Tue Jul 25, 2017 1:43 am

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: 5088

Re: JSON related

Tue Jul 25, 2017 7:42 am

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: 3

Re: JSON related

Fri Oct 20, 2017 5:02 pm

I would also like to see JSON Schema support.
sorin_carbunaru
Site Admin
Posts: 111

Re: JSON related

Mon Oct 23, 2017 9:52 am

Hello lcahlander,

I added your vote for this feature.

Best wishes,
Sorin Carbunaru
oXygen XML

Return to “Feature Request”

Who is online

Users browsing this forum: No registered users and 0 guests