Sha256: ffda8a3c74023bff8e66878bdae8a72b71dfa28443e56836e63f7df356ad536a
Contents?: true
Size: 954 Bytes
Versions: 1
Compression:
Stored size: 954 Bytes
Contents
{ "sampleData": {"root": {"parent1": {"child1":5,"child2":"parent1 word"}, "parent2": {"uniq":"val","child2":"word2"}} }, "methods": [ { "desc": "Get response object", "method": "@exchange.response", "result": "RestClient::Response or Savon::Response" }, { "desc": "Unique element from body", "method": "@exchange['uniq']", "result": "'val'" }, { "desc": "Element from body via JSONPath", "method": "@exchange['$..parent1.child2']", "result": "'parent1 word'" }, { "desc": "List of values matching JSONPath", "method": "@exchange.values_at_path('$..child2')", "result": "['parent1 word', 'word2']" }, { "desc": "Convert response into hash", "method": "@exchange.to_hash", "result": "{:root=>{:parent1=>{:child1=>5, :child2=>\"word\"}, :parent2=>{:uniq=>\"val\", :child2=>\"word2\"}}}" } ] }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
soaspec-0.2.16 | demo/extract.json |