Sha256: 19c3197dcf7ea217b9bdf9cddd03c2c22387da59b8ccdf7a708ce19abb206d47
Contents?: true
Size: 265 Bytes
Versions: 1
Compression:
Stored size: 265 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'jmespath' require 'json' expression = ARGV[0] json = JSON.parse(STDIN.read) $stdout.puts(JSON.dump(JMESPath.search(expression, json)))
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jmespath-1.6.2 | bin/jmespath.rb |