Skip to main content

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


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)

Uploaded Source

Built Distribution

jsonl2json-1.0.0-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page