Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Add support for JSONL file translation #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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