In the following Jackson/Java code that serializes objects into JSON, I am getting this:
{\"animal\":{\"x\":\"x\"}}
However, what I actually wa
As per this announement, Jackson 1.5 implements full polymorphic type handling, and trunk now has that code integrated.
There are two simple ways to make this work: