score:0

dictionary is normally called object in javascript, if you want an array with two objects, here's how you can do that:

var dict1 = {};
var dict2 = {};
dict1["data"] = [
   {"timing":[1,1,1,1],"title":"sunny"},
   {"timing":[1,1,1,1],"title":"sunny"},
  ];
dict2["title"] = "1";
const arrv = [dict1,dict2]
console.log('item: ',arrv)

here's how the result will look like

item:  [
  {
    "data": [
      {
        "timing": [
          1,
          1,
          1,
          1
        ],
        "title": "sunny"
      },
      {
        "timing": [
          1,
          1,
          1,
          1
        ],
        "title": "sunny"
      }
    ]
  },
  {
    "title": "1"
  }
]

Related Query

More Query from same tag