Skip to content

borlander/emfjson

 
 

Repository files navigation

EMFJSON is a JSON mapper for EMF


Build Status

Installation

See wiki

Releases

Snapshots

Goals

Provide a JSON syntax and associated tools for EMF Models.

Features

  • JSON Syntax,
  • Support for JSON object referencing,
  • EMF Resource implementation,
  • Support for CouchDB

User Guide

See wiki

JSON Syntax

{
  "eClass" : "library.ecore#//Library",
  "name" : "SciFi Library",
  "writers" : [
    {
      "eClass" : "library.ecore#//Writer",
      "name" : "Isaac Asimov",
      "books" : [
        {"$ref" : "//@books.0"},
        {"$ref" : "//@books.1"}
      ]
    }
  ],
  "books" : [
    {
      "eClass" : "library.ecore#//Book",
      "title" : "Prelude to Foundation",
      "pages" : 505,
      "category" : "ScienceFiction",
      "author" : {"$ref" : "//@writers.0"}
    },
    {
      "eClass" : "library.ecore#//Book",
      "title" : "Forward the Foundation",
      "pages" : 464,
      "category" : "ScienceFiction",
      "author" : {"$ref" : "//@writers.0"}
    }
  ]
}

Dependencies

  • EMF 2.7.0 or later
  • Jackson 1.6.0 or later

License

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

About

EMF Binding for JSON

Resources

Stars

Watchers

Forks

Packages

No packages published