An open API service indexing awesome lists of open source software.

https://github.com/imkairat/flex_json

flex_json is a Python utility that converts JSON files into the JSON Lines (JSONL) format. It reads a standard JSON file, which typically contains a list or array of objects, and outputs a corresponding JSONL file where each object is written to a new line.
https://github.com/imkairat/flex_json

json jsonlines python

Last synced: 6 months ago
JSON representation

flex_json is a Python utility that converts JSON files into the JSON Lines (JSONL) format. It reads a standard JSON file, which typically contains a list or array of objects, and outputs a corresponding JSONL file where each object is written to a new line.

Awesome Lists containing this project

README

          

# flex_json

**flex_json** is a simple Python utility for converting JSON files (containing arrays of objects) into JSON Lines (JSONL) format.
JSONL is a lightweight and efficient data serialization format where each line represents a single JSON object.

## Features

- Converts JSON files with arrays into JSONL format.
- Handles large JSON files efficiently by processing objects line by line.
- Easy to use with minimal setup.

## Installation

To use this tool, you need Python 3.11 or later and the `jsonlines` library. Install the required dependencies with:

```bash
pip install jsonlines