Closed ghillairet closed 6 years ago
JsonProperty annotation does now also work on methods since 1.0.0-rc.1
class TestB {
@JsonProperty( value = "my_value" )
String value
@JsonProperty
op String hello() {
"World"
}
}
will return
{
"eClass": "http://www.emfjson.org/jackson/annotations#//TestB",
"hello": "World"
}
Should we assume that this option can be turned on and off per mapper ?
That is not at the moment something that can be turn off, if annotations are present in the ecore model, then the mapper will consider them.
Investigate addition of annotations, like in jackson.
Annotations could be defined in the textual format xcore like below, and also in the standard XMI format.
We should list in this issue the relevant annotations that could be supported.