Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

jq starts with

#Example json
json='[{"t":"12345"}, {"t":999}]'

#jq using starts with
echo $json | jq -r '.[] | select(.t | startswith("123"))'
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #jq #starts
ADD COMMENT
Topic
Name
3+8 =