Looking for advice on the best way to reformat JSON code below using only es5. I am not very experienced with json formatting, so any suggestions are welcome.
{
"success": true,
"results": [
{
"id": "12",
"base": "263422"
},
{
"id": "15",
"base": "223322"
}
}
to:
{
"success": true,
"results": [
{
"id": 29,
"bill": [
{
"id": 29,
"base": 124122,
}
]
},
{
"id": 33,
"bill": [
{
"id": 33,
"base": 12412232
}
]
}
}