Document 1:
{
"data": {
"id": "123456",
"name": "abc",
"value": 1
}
}
Expected Output-
{
"abc": {
"id": "123456",
"name": "abc",
"value": 1
}
}
Explanation: How we can replace the root with the " name" value, check the expected output, whatever value of the "name", it becomes on the root level. and I have multiple documents.
Thanks in advance.