I have a model like that:
private String message;
private Integer errorCode;
private String data;
I get for example the following JSON from remote:
{"data": {"cat": "1.2.3.4", "ner": "80", "name": "pinta" }, "message" : "m", "errorCode" : 12}
When I deserialize this JSON, the message
and errorCode
variables gets the correct value. However I don't want to have the content of my data
variable interpreted. Instead, I want it to be the following string:
{"cat": "1.2.3.4", "ner": "80", "name": "pinta" }
After that, I will interpret it myself. How can I get this value of data
?