Lets assume there is a text file thats of size 100 GB. The content of this file is a JSON. This JSON has nested ojects. we need to get this JSON out. However it **wont have comma "," as delimiter that for separating the name value pairs.
I didnt ask about single file or not and stored in disk or memory like from multiple machine. since interviewer was curious about the algorithm for parsing and storing as key value pair.
I tried to solve this using logic of extracting text between { and } as an object and stored in a hashMap as key value pair, However failed to provider solution on finding the nested objects that dont have ","
We are suppose to return a hashmap with all the JSON objects as key value pairs including the nested objects.
This seems like a open question with no right answer to see the throught process. What is your thought ?