DEV Community


Posted on

Multiple Json objects in a single file

we have multiple json objects stored in array format in a file (30K records per file). I am looking for java code which can be used to split json objects into multiple objects and provide the json object in variable. Also, Is there any way which can be used to read array element one by one instead of loading entire data in memory as file size and record count is huge which may cause memory issues.

Top comments (1)

vinodgarg profile image

Anyone can help in sharing java code to achieve this?