set max-result, change respomse type to json format