json string <--> Map<String, List<String>>
{
"out-key-1": {
"inner-other-key-1": "inner-val-11",
"inner-other-key-2": "inner-val-12",
"inner-target-key": "inner-target-val-1"
},
"out-key-2": {
"inner-other-key-1": "inner-val-21",
"inner-other-key-2": "inner-val-22",
"inner-target-key": "inner-target-val-2"
}
}
{
"out-key-1": "inner-target-val-1",
"out-key-2": "inner-target-val-2"
}
target Java format should be Map<String, String>
process JSON array and JSON object at the same time (treat JSON object as the only element of JSON array)
{
"person": {
"name": "jack",
"gender": "male"
}
}
{
"person": [
{
"name": "Mike",
"gender": "male"
},
{
"name": "Jane",
"gender": "female"
}
]
}
{
"person": [
{
"name": "jack",
"gender": "male"
}
]
}
{
"person": [
{
"name": "Mike",
"gender": "male"
},
{
"name": "Jane",
"gender": "female"
}
]
}