generic_json does not like optional parameters