Couchbase Ruby client library

When posting JSON strings in rails this function is passed a StringIO object not a string.