Module: JPath
- Defined in:
- lib/jpath.rb,
lib/jpath/item.rb,
lib/jpath/parser.rb,
lib/jpath/pointer.rb,
lib/jpath/parser/path.rb,
lib/jpath/parser/step.rb,
lib/jpath/parser/formula.rb
Defined Under Namespace
Modules: Parser
Classes: Item, Pointer
Class Method Summary
collapse
Class Method Details
.find(json, xpath) ⇒ Object
13
14
15
|
# File 'lib/jpath.rb', line 13
def self.find(json, xpath)
parse(xpath).from(json)
end
|
.parse(xpath) ⇒ Object
17
18
19
|
# File 'lib/jpath.rb', line 17
def self.parse(xpath)
Parser.path(xpath)
end
|