I have JSON String (see below) and want to parse it into an Java object, that is basically not a problem. But as you can see the type of the value is not fix. Is there a way to parse this into objects with the fields
String key;
<JsonValue> value;
Timestamp time;
or something like this? It is important to me, to obtain the type of the value in a way that i can persist the data into a database.
[
{
"key": "someKey",
"value": "SomeValue",
"time": "2016-03-30 14:59:55.108"
},
{
"key": "otherKey",
"value": 42,
"time": "2016-03-30 14:59:55.108"
}
]
valueasObject?