Sha256: d7abc652c51f803cd005cac403e64fad1c9aa7c34d928073af0cb3c1b1bcd474

Contents?: true

Size: 409 Bytes

Versions: 1

Compression:

Stored size: 409 Bytes

Contents

module JYRon
  module Filters

    FILTERS = {:jsonpath => {:desc => "Filtering with JSONPath", :banner => "<JSONPath expression"}}

    def jsonpath(expression)
      if @adapters.include? :symbolize_keys then
        res = JsonPath.new(expression, use_symbols: true).on(@object)
      else
        res = JsonPath.new(expression).on(@object)
      end
      @object = res
      return self
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jyron-0.1 lib/jyron/filters.rb