Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

changing readme to previously used verbage

  • Loading branch information...
commit 7e7bf66c6c5d1d457516566f028712896e957be2 2 parents 9dc8bec + c7e36f2
@brianmario brianmario authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 README.rdoc
9 README.rdoc
@@ -1,6 +1,6 @@
= YAJL C Bindings for Ruby
-This gem (although not in gem form just yet) is a C binding to the excellent YAJL JSON parsing and generation library.
+This gem is a C binding to the excellent YAJL JSON parsing and generation library.
You can read more info at the projects website or check out it's codes at
@@ -188,9 +188,10 @@ Using EventMachine and you want to encode and send in chunks?
-Or a simple encode returning a string
+But to make things simple, you might just want to let yajl-ruby do all the hard work for you and just hand back
+a string when it's finished. In that case, just don't provide and IO or block (or assign the on_progress callback).
- json_str = Yajl::Encoder.encode({:foo => :bar})
+ str = Yajl::Encoder.encode(obj)
You can also use Yajl::Bzip2::StreamWriter and Yajl::Deflate::StreamWriter. So you can pick whichever fits your CPU/bandwidth sweet-spot.
@@ -216,7 +217,7 @@ There are a lot more possibilities that I'd love to see other gems/plugins for s
Some ideas are:
* parsing logs in JSON format
* a Rails plugin (
-* builtin Rails 3 support?
+* builtin support in Rails 3?
* Rack middleware (ideally the JSON body could be handed to the parser while it's still being received)
* use with ohai (
* JSON API clients (,

0 comments on commit 7e7bf66

Please sign in to comment.
Something went wrong with that request. Please try again.