Skip to content

Feat: Add support for JSONL file translation#83

Open
fadkeabhi wants to merge 1 commit intomololab:masterfrom
fadkeabhi:feat-add-support-for-jsonl-files
Open

Feat: Add support for JSONL file translation#83
fadkeabhi wants to merge 1 commit intomololab:masterfrom
fadkeabhi:feat-add-support-for-jsonl-files

Conversation

@fadkeabhi
Copy link
Contributor

Overview

This PR adds support for translating JSONL (JSON Lines) files as discussed in this issue #50

Implementation Details

  • Added detection for JSONL file format based on file extension

  • Implemented conversion of JSONL to JSON array:

    • Each line from the input JSONL file is parsed as a separate JSON object
    • All objects are collected into a single array for processing
  • Added reverse conversion for output:

    • The translated JSON array is split into individual objects
    • Each object is written as a separate line in JSONL format

PS:

Let me know if any changes or additional information is needed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants