return json format for api request