My json looks like
{
"data": [
{
"location":"hjjh",
"latitude":"56.65765",
"longitude":"65.6576"
}
],
"data": [
{
"location":"thfh",
"latitude":"67.65765",
"longitude":"5.6576"
}
]
}
How could I merge the key of given json to single key as in below format using JAVA
{
"data": [
{
"location":"hjjh",
"latitude":"56.65765",
"longitude":"65.6576"
},
{
"location":"thfh",
"latitude":"67.65765",
"longitude":"5.6576"
}
]
}
Same issue has been discussed in combine duplicate keys in json Can anyone tell me the fix in java