adds params to json