Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can C# DocumentDb client return raw json with out deserialization?

I want to query the DocumentDb and return the raw json with out any deserialization (I don't have any business logic to run, so deserialization would be an unnecessary overhead). Is this something we can do with current SDK?

like image 356
Soma Yarlagadda Avatar asked May 06 '16 17:05

Soma Yarlagadda


People also ask

Is Can-C good for your eyes?

Users and scientists have reported that Can-C is also great for: Dry eye syndrome, Corneal disorders, Computer vision syndrome, Eye strain, Ocular inflammation, Blurred vision and other systemic diseases, also a benefit for those who wear contact lenses.

Is Can-C good for dogs?

SAFE FOR HUMANS AND DOGS - Can-C is the first and only patented NAC eye drop that uses the exact formula proven effective in both animal and human trials, offering a non-invasive alternative to cataract surgery.

What is the best eye drops for cataracts?

1 Lanosterol eye drops could potentially be a safe, non-invasive, and less costly alternative to cataract surgery for patients who have moderate forms of cataracts.

Can-C glaucoma?

Can C cataract eye drops have been proven to reduce the occurrence and slow the development of senile cataracts. Can assist to lower the intraocular pressure associated with glaucoma. Are also beneficial for contact lens disorders. Have also been shown to help those suffering from presbyopia.


1 Answers

Good question. At this time, DocumentDB does not offer raw JSON through the SDK. You will always either get a Document object or if you are using a generic call, your own object type.

In most cases it makes sense to deserialize into a POCO object so it can be validated and used in business code prior to returning to the client. But it would be nice to have access to the raw JSON where there isn't any processing needed before returning it to the client.

Hope this helps.

like image 72
cnaegle Avatar answered Nov 13 '22 00:11

cnaegle