How to insert raw json in Couchbase with the .NET client? -


i'm working on rest api crud operations on couchbase.

the idea send directly backend raw json coming request body.

there should no serialization @ done couchbase client. can document store in simple string (no deserialization).

as far can tell, not supported yet.

am wrong ?

couchbase treat valid raw json strings documents, have send string value , same way. here example latest .net sdk (2.1.1 @ moment):

string json = "{\"a\":\"b\"}"; bucket.upsert<string>("my_id", json);  var op = bucket.get<string>("my_id"); var str = op.value; debug.assert(string.equals(json, str)); 

looking in couchbase ui, can see our raw json string proper document:

enter image description here


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -