data_juicer.format.json_formatter module¶
- class data_juicer.format.json_formatter.JsonFormatter(dataset_path, suffixes=None, **kwargs)[source]¶
Bases:
LocalFormatter
The class is used to load and format json-type files.
Default suffixes is [‘.json’, ‘.jsonl’, ‘.jsonl.zst’]
- SUFFIXES = ['.json', '.jsonl', '.jsonl.zst']¶