JSON Schema and JSON/XML conversion?

Are you missing a feature? Request it's implementation here.
mhGLEIF
Posts: 42

JSON Schema and JSON/XML conversion?

Wed Mar 15, 2017 2:09 pm

Please could I request 2 new features?

[list=]
JSON Schema generation and validation (please see http://json-schema.org/);
JSON to XML and back with a more-or-less round-trippable convention e.g. Badgerfish (please see https://docs.tibco.com/pub/activematrix ... AB0FF.html for example)
[/list]
Radu
Posts: 5562

Re: JSON Schema and JSON/XML conversion?

Wed Mar 15, 2017 2:29 pm

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

Re: JSON Schema and JSON/XML conversion?

Mon Oct 02, 2017 2:41 pm

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: 72
Location: Prague, the Czech Republic, Europe

Re: JSON Schema and JSON/XML conversion?

Fri Oct 13, 2017 2:37 pm

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

Re: JSON Schema and JSON/XML conversion?

Mon Oct 16, 2017 3:41 pm

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

Re: JSON Schema and JSON/XML conversion?

Thu Nov 16, 2017 6:36 pm

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

Re: JSON Schema and JSON/XML conversion?

Thu Nov 16, 2017 7:06 pm

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

Re: JSON Schema and JSON/XML conversion?

Tue Dec 12, 2017 8:58 pm

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/0eecf499dfe307d7aecbb15f775bd4f2
Radu
Posts: 5562

Re: JSON Schema and JSON/XML conversion?

Wed Dec 13, 2017 11:09 am

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

Re: JSON Schema and JSON/XML conversion?

Mon Jun 18, 2018 4:27 pm

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

Return to “Feature Request”

Who is online

Users browsing this forum: No registered users and 1 guest