Json - read file parse each line of json into bean
Hi,
I am a newbie to Json
I have an input file in .txt format containing
{“person”:{“name”:”xxx”,”location”:Sao Paulo”,”email”:abcd@yahoo.com}}
{“person”:{“name”:”yyy”,”location”:Brasilia”,”email”:brasilia@yahoo.com}}
{“person”:{“name”:”zzz”,”location”:Minas”,”email”:bansn@yahoo.com}}
I have to read the file, parse each line of json and fill the field values into Java bean name person. Print the person bean as Tab separated value.
please help
|