Adds default params to to_json method