emfjson / emfjson-jackson

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

Deserialization of a JSON into an EMF Object Type inheriting from "org.eclipse.emf.ecore.xml.type.AnyType" is not working #42

Closed adube3 closed 9 years ago

adube3 commented 10 years ago

I have an EClass which inherits from "org.eclipse.emf.ecore.xml.type.AnyType". When I serialize it to JSON, it works well.

However, when the same JSON is de-serialized into EMF Object, it is not working. Since the attribute is multi-valued, I am getting an emtpy list instead of populated object while saving it into a EMF Resource.

How can we handle De-serialization of an EMF Object inheriting from AnyType.

ghillairet commented 10 years ago

Can you post a sample so I can reproduce the error.