Hi there.
Can't find out how to handle the next situation..
For instance, I have two classes:
public class ClassA {
private String a;
private int b;
private Pair p;
// constructors, getters and setters
}
public class Pair {
private String x;
private String y;
// constructors, getters and setters
}
And I want serialized JSON to look smth. Like this:
"classA" :{
"a" : "value a",
"b" : 123,
"p" : "44=>77"
}
So, I want Pair to be serialized/deserialized to/from a string with a specified pattern (e.g., <x>=><y>)
Cant' get it working specifying only custom JsonSerializer/JsonDeserializer for Pair class.
Does anyone have an ideas about solution?
--
You received this message because you are subscribed to the Google Groups "jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jackson-user...@googlegroups.com.
To post to this group, send email to jackso...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.