script to create the json object