I have a text file which has the following data
{"i":1, "j":2}
{"k":3, "l":10}
{"i":4, "w":30}
each line represents a simple document that can be saved in mongo db
the lines can have other information as well that was just an example
my question is, is it possible to read the text file line by line and somewhat create the document represented by each line and save it in mongo db?
and if yes, how would I do it(or at least, approach it)?
Thanks in advance
EDIT: The language is JAVA, sorry for not mentioning
you can use this scenario
read each line from your file
and insert into mongodb
for ex.