Does anyone know what is the best way to reformat JSON code below using only es5 ?I haven`t done much json formatting, thats why open for suggestions.
{
  "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
                }
            ]
        }
    }
 
    