Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to select an object based a field which is like a string jq

jq '.[] | select(contains({"fieldName":"subString"}))
 
PREVIOUS NEXT
Tagged: #select #object #based #field #string #jq
ADD COMMENT
Topic
Name
3+6 =