Closed bhargavnova closed 12 months ago
i'll take this
Sure!
too hard for me :)
okay @aecuto , so it will be like a list of dictionaries if any JSON file has lots of rows, that can be divided into small batches, that was the concept, if anyone wants to take over, just comment.
Happy Coding!
the json have many formats such as [{},{}]
{keys: []}
{}
that why tis too hard
as of now, let's go with the first, because that's common when it comes to large file,
lets me try aging :)
Hi @aecuto, Thanks for your contribution,
You can take a look at other open issues or, you can also submit one of your own code/ideas.
Thanks :) Happy coding!
Objective
Develop a Python script or module that allows users to divide large JSON (JavaScript Object Notation) files into smaller, more manageable chunks. This tool will help users process and work with large JSON datasets efficiently.
Features
Chunk Size Specification: Allow users to specify the desired size of each resulting JSON chunk. (KB, MB....)
Output File Naming: Provide options to customize the naming convention for the generated JSON chunks.
Handle Nested JSON: Ensure that the script can handle cases where the JSON data has nested structures.
Preserve Valid JSON: Guarantee that each generated chunk remains a valid JSON object.
Example Usage
Difficulty
: Beginner/IntermediateTags
: Python, JSON, Data Processing, ChunkingAdditional Information
Contribution Guidelines
The updated guidelines can be found here.
Note:
folder_name
: divide_jsonscript_name
: divide_json