Android using MSGPack Core and Jackson Mapper - decode class variable of unknown type Android using MSGPack Core and Jackson Mapper - decode class variable of unknown type json json

Android using MSGPack Core and Jackson Mapper - decode class variable of unknown type


So I changed the class to;

public class myClass{    public String status;    public Object data;}

And I now just test the Object type. I am not sure why I did not try this before!


org.msgpack.value.Value is an interface.

When you are de-serializing values using ObjectMapper, the target must be a Class with Default Constructor. Other wise OM cannot create a target Object.