I am using Jackson and I have the following JSON structure.
{
"person": {
"person1": {"name": "daniel", "age": "17"},
"person2": {"name": "lucy", "age": "19"}
}
}
And I want to get the following result or separate them.
Json1:
{
"person1": {"name": "daniel", "age": "17"},
}
Json2
{
"person2": {"name": "lucy", "age": "19"}
}
How to do that?