We have already written about our automatic web service to discover implicit schemas in JSON documents (here and here) in the portal.
Thanks to a new feature we are releasing today, you can now use this service to convert your JSON files to EMF Ecore models. You can transform both the (implicit & discovered) JSON schema plus the JSON data. The schema is converted as an standard .ecore model while the JSON data is stored as an XMI instance model conforming to the first one.
Ecore is part of the EMF project, the official (meta)modeling framework for the Eclipse platform. This means that having your JSON documents as Ecore/instance models will immediately allow you to benefit from the plethora od model-driven tools avaialble, for instance to do some analysis or code-generation from them.
You can find this new feature in the Simple and Advanced discoverers, the only thing you have to do is to click in the corresponding buttons to see the files and then download them.
I’m an Associate Professor at UOC and researcher at SOM Research Team, in Barcelona, Spain. My research interests are mainly focused on Model-Driven Engineering (MDE), Domain-Specific Languages and Collaborative Development.
Great tool to quicly help me understand the schema! However, unable to download ecore file. Internal server error. Also, the schema graphic displays half of the image while being cutoff by the data output.
Hi Marvin,
happy to see that the tool is useful 🙂 I’m not able to reproduce your error, as it works for me (right-click on the picture and save as JPG file). It may be possible that your model is too big? In that case, you may have to download the tool and use it programmatically :S
Cheers,
I was able to copy the images, but clicking the download links brings up an empty page. Thanks again anyway. This was enough for me to get the idea.
This is strange, as I say in a previous comment, I cannot reproduce your problem. Try to make the JSON definition smaller, or download the tool to use it programmatically.