# json_formatter The class is used to load and format json-type files. Default suffixes is `['.json', '.jsonl', '.jsonl.zst']` 该类用于加载和格式化 json 类型的文件。 默认后缀是 `['.json', '.jsonl', '.jsonl.zst']` Type 算子类型: **formatter** Tags 标签: cpu ## 🔧 Parameter Configuration 参数配置 | name 参数名 | type 类型 | default 默认值 | desc 说明 | |--------|------|--------|------| | `dataset_path` | | `''` | a dataset file or a dataset directory | | `suffixes` | | `None` | files with specified suffixes to be processed | | `kwargs` | | `''` | extra args | ## 📊 Effect demonstration 效果演示 not available 暂无 ## 🔗 related links 相关链接 - [source code 源代码](../../../data_juicer/ops/formatter/json_formatter.py) - [unit test 单元测试]() - [Return operator list 返回算子列表](../../Operators.md)