Details
Description
Json documents with an attribute starting with _ gets stored as type base64
A json document without any _ attribute gets stored with type "json":
bash> curl -X PUT -H 'Content-Type: application/json' 'http://Administrator:password@10.3.121.99:8091/couchBase/default/doc1' -d '
'
{"ok":true,"id":"doc1"}bash> curl -i -X GET 'http://Administrator:password@10.3.121.99:8091/couchBase/default/doc1'
HTTP/1.1 200 OK
X-Couchbase-Meta:
Server: MochiWeb/1.0 (Any of you quaids got a smint?)
Date: Thu, 02 Aug 2012 17:53:27 GMT
Content-Type: application/json
Content-Length: 24
Cache-Control: must-revalidate
A json document with an _ attribute gets stored with type "base64"
bash> curl -X PUT -H 'Content-Type: application/json' 'http://Administrator:password@10.3.121.99:8091/couchBase/default/doc2' -d '
'
{"ok":true,"id":"doc2"}bash> curl -i -X GET 'http://Administrator:password@10.3.121.99:8091/couchBase/default/doc2'
HTTP/1.1 200 OK
X-Couchbase-Meta:
Server: MochiWeb/1.0 (Any of you quaids got a smint?)
Date: Thu, 02 Aug 2012 17:53:46 GMT
Content-Type: application/json
Content-Length: 50
Cache-Control: must-revalidate
"eyJuYW1lIjoiY291Y2giLCJhZ2UiOjUsIl9uZXciOiIxIn0="
Diagnostics are attached.