convert non-GET API's data to json