Page 1 of 1

JSON Schema and JSON/XML conversion?

Posted: Wed Mar 15, 2017 2:09 pm
by mhGLEIF
Please could I request 2 new features?

Re: JSON Schema and JSON/XML conversion?

Posted: Wed Mar 15, 2017 2:29 pm
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

Re: JSON Schema and JSON/XML conversion?

Posted: Mon Oct 02, 2017 2:41 pm
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

Re: JSON Schema and JSON/XML conversion?

Posted: Fri Oct 13, 2017 2:37 pm
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... ;-)

Re: JSON Schema and JSON/XML conversion?

Posted: Mon Oct 16, 2017 3:41 pm
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

Re: JSON Schema and JSON/XML conversion?

Posted: Thu Nov 16, 2017 6:36 pm
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.

Re: JSON Schema and JSON/XML conversion?

Posted: Thu Nov 16, 2017 7:06 pm
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.

Re: JSON Schema and JSON/XML conversion?

Posted: Tue Dec 12, 2017 8:58 pm
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

Re: JSON Schema and JSON/XML conversion?

Posted: Wed Dec 13, 2017 11:09 am
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

Re: JSON Schema and JSON/XML conversion?

Posted: Mon Jun 18, 2018 4:27 pm
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

Re: JSON Schema and JSON/XML conversion?

Posted: Sun Aug 12, 2018 6:01 pm
by mdsh
Thanks, Octavian. That's great news.