Create JSON array from text file in linux with loop
by project.linux.proj from LinuxQuestions.org on (#506NW)
I have a below file in txt format. I want to arrange the data in json array format in linux and append more such data with for/while loop in the same json array based on condition. Please help me with the best way to achieve this.
File
Name:Rock
Name:Clock
{"Array" :[
{
"Name": "Rock",
},
{
"Name": "Clock",
}
]
}


File
Name:Rock
Name:Clock
{"Array" :[
{
"Name": "Rock",
},
{
"Name": "Clock",
}
]
}