Fix JSON monkey patch for StringIO-like objects
Fix JSON monkey patch for StringIO-like objects

Reads all objects with a StringIO-like interface,
not only StringIO itself. One use-case being
Unicorn::TeeInput, but others may exist.

Change-Id: I9dee666d7d1161853b933cfa164d5edf671c6fe8
Reviewed-on: http://review.couchbase.org/26760
Reviewed-by: Sergey Avseyev <87f6d5e4fd3644c3c20800cde7fd3ad1569370b3@gmail.com>
Tested-by: Sergey Avseyev <87f6d5e4fd3644c3c20800cde7fd3ad1569370b3@gmail.com>

dewolfe/couchbase-ruby-client,dewolfe/couchbase-ruby-client