Added the ability of specifying 'params' in json.