i got a text file, which inside is in format json, ex : array_name:[{name:‘name’}]
i want to add new json to the array, ex ex : array_name:[{name:‘name’},{name:‘new_name’}]
i got a text file, which inside is in format json, ex : array_name:[{name:‘name’}]
i want to add new json to the array, ex ex : array_name:[{name:‘name’},{name:‘new_name’}]
Hey there,
nice to meet you!
What have you tried so far?
What happens when you search for bash append text
on a search engine?
Nice to meet you too
i tried using sed command to insert the new json after the ‘}’
directly but in vain.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.