A Python library for converting data in the JSON Lines (.jsonl) format to the standard JSON (.json) format
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jsonl2json-1.0.0.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for jsonl2json-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61f9cb89a567ee981722d1315e83e6da34de4836aab284ca998c31557634c664 |
|
MD5 | dbfca191ce320c2664925f30d185f91f |
|
BLAKE2b-256 | 92b86a96f9e3bf8d2a8ab8c18f2311ddc5b58ca5e08ab844f77293319f26840a |