EMF Binding for JSON.
JSON binding for EMF (Eclipse Modeling Framework) models, that allows serialization and deserialization of EMF Resources in a specific JSON format.
This is how a model looks like in JSON format.
{
"eClass" : "http://www.eclipse.org/emf/2002/Ecore#//EPackage",
"name" : "model",
"nsPrefix" : "model",
"nsURI" : "http://www.example.org/model",
"eClassifiers" : [
{
"eClass" : "http://www.eclipse.org/emf/2002/Ecore#//EClass",
"name" : "Library"
}
]
}
- Update Site: http://ghillairet.github.com/p2 (composite site with Jackson 2.2.3)
- Eclipse Marketplace
A maven repository for emfjson is available, note that you should also include the denpendency and repository for Jackson in your pom file. Please refer to the Jackson documentation for more information.
<repository>
<id>emfjson-repository</id>
<url>http://repository-ghillairet.forge.cloudbees.com/snapshot</url>
</repository>
<dependency>
<groupId>org.eclipselabs</groupId>
<artifactId>org.eclipselabs.emfjson</artifactId>
<version>0.7.0-SNAPSHOT</version>
</dependency>
A sample maven based project is provided in the examples folder.
There is two solutions to your problem:
- Install the bundles through your eclipse update manager, go in your eclipse/plugins folder, you'll find the emfjson and jackson jars there.
- Browse the maven repositories for emfjson and jackson.
See GWT edition
- EMF 2.7.0 or later
- Jackson 2.0.0 or later
Note that you must Help > Install
Jackson 2 if you clone the src to work on it, as your usual Eclipse PDE (nor Orbit) out-of-the-box target platform will not have that.
This software is distributed under the terms of the Eclipse Public License 1.0 - http://www.eclipse.org/legal/epl-v10.