make compatible with Couchbase::SERIALIZER_JSON