JSON Schema and JSON/XML conversion?

Are you missing a feature? Request its implementation here.
mhGLEIF
Posts: 43
Joined: Tue Jul 26, 2016 6:31 pm

JSON Schema and JSON/XML conversion?

Post by mhGLEIF »

Please could I request 2 new features?
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: JSON Schema and JSON/XML conversion?

Post by Radu »

Hi Michael,

Thanks for the requests, we already have internal issues for each of them and I will try to increase their priority.
We'll try to update this forum post when any of them is implemented.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
teo
Posts: 57
Joined: Wed Aug 30, 2017 3:56 pm

Re: JSON Schema and JSON/XML conversion?

Post by teo »

Hi Michael,

We released Oxygen XML Editor 19.1 a couple of days ago and the feature you requested is now available.
You can find more details here: https://www.oxygenxml.com/doc/versions/ ... o-XML.html.

Regards,
Teo
Teodor Timplaru
<oXygen/> XML Editor
http://www.oxygenxml.com
tatra603
Posts: 76
Joined: Fri Sep 17, 2004 10:53 am
Location: Prague, the Czech Republic, Europe

Re: JSON Schema and JSON/XML conversion?

Post by tatra603 »

And can I ask You about status of JSON Schema <-> XML Schema request from original post?

Or even JSON -> JSON Schema generation, JSON validation by JSon Schema and general JSON Schema functionality like XMl Schema? Yes, I know, oXygen is about XML, not JSON, but... ;-)
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: JSON Schema and JSON/XML conversion?

Post by Radu »

Hi,

We have not yet made any progress in adding a JSON Schema-based validator. When we do, we'll try to also update this forum thread.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
lcahlander
Posts: 4
Joined: Tue Nov 03, 2009 6:31 pm

Re: JSON Schema and JSON/XML conversion?

Post by lcahlander »

I have been working on JSON schemas for a while now. I have found the following:
  • Viewers
    • Json-schema-viewer http://jlblcc.github.io/json-schema-viewer/ is an excellent viewer. I am planning on making some updates.
      • It is incomplete. e.g. It does not handle patternProperties. I have added that to my copy of the code.
      • The validator is tv4 and has not been maintained for a while. I am looking into incorporating ajv.
      • Uses d3.js version 3. I am planning on updating to version 4 and incorporating d3-flextree-v4 to improve the look
      • Planning on creating a Polymer wrapper around the viewer
  • Validators
    • ajv appears to be the best maintained
  • Convert XSDs to JSON Schemas
    • I found xsd2json and xsd2json2. I have problems with what is generated, when I get them to work.
    • I am planning on writing an XQuery 3.1 script to perform the transform. It will be in GitHub's Gist.
lcahlander
Posts: 4
Joined: Tue Nov 03, 2009 6:31 pm

Re: JSON Schema and JSON/XML conversion?

Post by lcahlander »

tatra603 wrote:Or even JSON -> JSON Schema generation
There is a JSON Documents to JSON Schema generator called GenSON https://github.com/wolverdude/GenSON that does a decent start of a JSON Schema. The schema does need editing after the generation, but provides a good start.
lcahlander
Posts: 4
Joined: Tue Nov 03, 2009 6:31 pm

Re: JSON Schema and JSON/XML conversion?

Post by lcahlander »

I have the beginnings of an XML Schema to JSON Schema converter. It is in my GIST. Please supply me with comments and suggestions so that it can be better.

https://gist.github.com/lcahlander/0eec ... 5f775bd4f2
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: JSON Schema and JSON/XML conversion?

Post by Radu »

Hi,

I left a comment for you on the opened issue.
The Oxygen forum is quite static, most registered users follow only the threads they started, if you want feedback from more Oxygen users you may want to consider registering on the Oxygen Users List and asking there:

https://www.oxygenxml.com/mailman/listinfo/oxygen-user

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
tavy
Posts: 365
Joined: Thu Jul 01, 2004 12:29 pm

Re: JSON Schema and JSON/XML conversion?

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
mdsh
Posts: 1
Joined: Sun Aug 12, 2018 5:57 pm

Re: JSON Schema and JSON/XML conversion?

Post by mdsh »

Thanks, Octavian. That's great news.
Post Reply