Permalink
Browse files

Damn TextMate; Don't edit a file while pulling changes

  • Loading branch information...
1 parent 6bfc3e4 commit 4b937a96c659b40c2ca2ea72ea46ba32907ff011 @fd committed May 27, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 README.md
View
@@ -1,4 +1,4 @@
-# JSONSelect
+# JSONSelect [![Build Status](http://travis-ci.org/fd/json_select.png)](http://travis-ci.org/fd/json_select)
**CSS-like selectors for JSON.**
@@ -48,7 +48,9 @@ json = { # This would normally be loaded with something like yajl-ruby
"weight" => 172
}
-JSONSelect('string:first-child').match(json) # => ["Lloyd", "Bulgarian", "English", "Spanish", "window", "beer"]
+JSONSelect('string:first-child').test(json) # => true
+JSONSelect('string:first-child').match(json) # => "window"
+JSONSelect('string:first-child').matches(json) # => ["window", "beer"]
```
## Language support

0 comments on commit 4b937a9

Please sign in to comment.