params to json