fixing the JSON