Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 622 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 622 Bytes

Jsonl2json

A Python library for converting data in the JSON Lines (.jsonl) format to the standard JSON (.json) format

Installation

You can install jsonl2json using pip:

pip install jsonl2json

Usage

You can use jsonl2json in your Python code like this:

from jsonl2json import JsonlToJsonFormatter

jsonl = JsonlToJsonFormatter('input.jsonl', 'output.json')
jsonl.to_json()

This will read the input file input.jsonl and write a JSON array to the output file output.json.

License

jsonltojson is released under the MIT License.txt. See LICENSE for more information.