eclipse-emfcloud / emfjson-jackson

emfjson-jackson
Other
16 stars 15 forks source link

Add `@JsonRawValue` annotation #47

Closed janhicken closed 2 years ago

janhicken commented 2 years ago

The annotation triggers raw JSON (de)serialization for attributes, if their instance class is java.lang.String.

The serialization implementation matches the behaviour of com.fasterxml.jackson.annotation.JsonRawValue.

Unlike Jackson's implementation, deserialization of raw JSON into the String is also supported.

Closes https://github.com/eclipse-emfcloud/emfjson-jackson/issues/46