'Adding root node to json structure
I have below json structure. I need to add extra tag element documents as a list to entire my json structure. Please advise how can I achieve this.
{
"issuer": {
"address": {
"branchID": " ",
"country": " ",
"governate": " "
}
}
}
Expecting below Output:
{
"documents": [
{
"issuer": {
"address": {
"branchID": " ",
"country": " ",
"governate": " "
}
}
}
]
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
