Netflix/curator — pull request #122 by swthomas55 (2012-07-24 14:22:28+00:00)
Title: Issue #98 JsonInstanceSerializer does not deserialize custom payload types

Annotated getPayload() with @JsonTypeInfo.

Wrote a test for the new behavior and tests to verify that it still works for List and Map payloads.

There is, however, a breaking incompatibility with List payloads that will show up in environments that mix the old code and the new code.
* The new code will throw a JsonMappingException when it attempts to read a List payload written by the old code.
* The old code, when it reads a List payload generated by the new code, will generate a list with two elements, the first of which is the class name of the List type, and the second of which is the original list.