changing format of json