This will work if the api match them. You cannot edit the response just to make it look the way you want. You need to fit the possible schema of the API service.