better handling of large json data. fix single parameter case