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.
- Host: GitHub
- URL: https://github.com/imkairat/flex_json
- Owner: ImKairat
- License: mit
- Created: 2024-12-05T08:21:13.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-12-06T03:42:59.000Z (10 months ago)
- Last Synced: 2025-02-06T22:14:24.721Z (8 months ago)
- Topics: json, jsonlines, python
- Language: Python
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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