add format option instead of raw_json.