set max-result, change response type to json format