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 details)
Built Distribution
File details
Details for the file jsonl2json-1.0.0.tar.gz
.
File metadata
- Download URL: jsonl2json-1.0.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
d1f539466fbd3e8ce6124aa1dba1048eb612bd9a894016f1f0e0c056ab1da50b
|
|
MD5 |
88263acfb5cb75dbd0321f1388723c41
|
|
BLAKE2b-256 |
73bfdc83549763a3416d8a3f2a4716f0f820a6f95fc7ec28e7825a7dfce30277
|
File details
Details for the file jsonl2json-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: jsonl2json-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
61f9cb89a567ee981722d1315e83e6da34de4836aab284ca998c31557634c664
|
|
MD5 |
dbfca191ce320c2664925f30d185f91f
|
|
BLAKE2b-256 |
92b86a96f9e3bf8d2a8ab8c18f2311ddc5b58ca5e08ab844f77293319f26840a
|