Need help bash script

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! :wave:

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.