Re: [jackson-user] Jackson custom serializers

2017-08-10 Thread Tatu Saloranta
On Thu, Aug 10, 2017 at 2:00 PM, Matteo wrote: > Dear Tatu, > I really thank you for your immediate and very thorough answer, I really > appreciate! > > I tried with the SerializerProvider approach but I was not able to implement > something that works. Could you please point me to the right direc

Re: [jackson-user] Jackson custom serializers

2017-08-10 Thread Matteo
Dear Tatu, I really thank you for your immediate and very thorough answer, I really appreciate! I tried with the SerializerProvider approach but I was not able to implement something that works. Could you please point me to the right direction with the approach no.(2)? Is there any simple examp

Re: [jackson-user] Jackson custom serializers

2017-08-09 Thread Tatu Saloranta
On Tue, Aug 8, 2017 at 4:03 PM, Matteo wrote: > Hello! > > I'm trying to write a custom serializer that can transform the following > structure > > { > "a": { > "@context": "context-a", > "aKey": "aValue" > }, > "b": { > "@context": "context-b", > "anoth

[jackson-user] Jackson custom serializers

2017-08-08 Thread Matteo
Hello! I'm trying to write a custom serializer that can transform the following structure { "a": { "@context": "context-a", "aKey": "aValue" }, "b": { "@context": "context-b", "anotherbKey": "anotherbValue", "bKey": "bValue" } } into this: