Skip to content

rhajamor/emfjson

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EMF Binding for JSON. Build Status

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"
        }
    ]
}

Documentation

Here

Installation

Eclipse Update Manager

Maven repository

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.

You want the jars

There is two solutions to your problem:

  1. Install the bundles through your eclipse update manager, go in your eclipse/plugins folder, you'll find the emfjson and jackson jars there.
  2. Browse the maven repositories for emfjson and jackson.

GWT Support

See GWT edition

Dependencies

  • EMF 2.7.0 or later
  • Jackson 2.0.0 or later

How to hack (and contribute to) it

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.

License

This software is distributed under the terms of the Eclipse Public License 1.0 - http://www.eclipse.org/legal/epl-v10.