Working on Json encoding for couchbase

added decoding