Adding json to array script