changing json data to match api's