I have a Json Object that I want to transform in a POJO, the problem is that 1 of his properties is a value c that will have different values that I don't know in advance. Let's say that I don't know nothing of "$key", or could be names of the cities all over the world
{
"data": [{
"id": 1,
"name": "theName",
"symbol": "theSymbol",
"last_updated": "2018-06-02T22:51:28.209Z",
"quote": {
"$key": {
"price": 9283.92,
},
"$key": {
"price": 1,
}
}
}],
"status": {
"timestamp": "2018-06-02T22:51:28.209Z",
"error_code": 0,
"error_message": "",
"elapsed": 10,
"credit_count": 1
}
}
Map<String,SomeClass>or something similar.