README.md in ruby-jq-0.1.9 vs README.md in ruby-jq-0.2.0
- old
+ new
@@ -57,10 +57,13 @@
# => {"BAR"=>[100, 200]}
# => 1.23
# => [1, "2", 3]
end
-jq = JQ(src, :parse_json => false)
+p jq.search('.[]')
+# => ["FOO", {"BAR"=>[100, 200]}, 1.23, [1, "2", 3]]
+
+jq = JQ(src, parse_json: false)
jq.search('.[1].BAR') do |value|
p value
# => "[100,200]"
end