Article 506NW Create JSON array from text file in linux with loop

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",
}
]
}latest?d=yIl2AUoC8zA latest?i=zyAVcsmRMNM:R8khD4QkRg8:F7zBnMy latest?i=zyAVcsmRMNM:R8khD4QkRg8:V_sGLiP latest?d=qj6IDK7rITs latest?i=zyAVcsmRMNM:R8khD4QkRg8:gIN9vFwzyAVcsmRMNM
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments