Switch to Java beans for Json deserialization.