Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jq append value to array

jq '.data.messages += [{"date": "2010-01-07T19:55:99.999Z", "xml": "xml_samplesheet_2017_01_07_run_09.xml", "status": "OKKK", "message": "metadata loaded into iRODS successfullyyyyy"}]'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jq #append #array
ADD COMMENT
Topic
Name
1+9 =