how to create array of json objects in typescript