Fix JSON monkey patch for StringIO-like objects

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