emfjson / emfjson-jackson

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

Fix for multiple root objects in JSON #104

Open ekecce opened 5 years ago

ekecce commented 5 years ago

When the JSON source has multiple root objects, the current version had all root objects from the second one take the wrong type. This is because the current parent and feature fields were not being reset after reading each object.

This commit fixes the issue, adding some code at the end of the reading of each root object.