params in to_json