set application/json header for api call