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:
Comments
Post a Comment