emfjson / emfjson-jackson

JSON Binding for Eclipse Modeling Framework
https://emfjson.github.io
Other
80 stars 23 forks source link

Add option to serialize type info in ref object #18

Closed ghillairet closed 12 years ago

ghillairet commented 12 years ago

ref objects should contain a type information:

{ "$ref": "//@ref.0" }

should become

{ "$ref": "//@ref.0", "eClass": "http://www.example.org/model#//TheRefType" }

when the option EMFJs.OPTION_SERIALIZE_REF_TYPE is set to true. This option could be set to true by default.