Working on the JSON part