Anyone figure out how to save a JSON string into a DocumentDB collection? Anyone figure out how to save a JSON string into a DocumentDB collection? json json

Anyone figure out how to save a JSON string into a DocumentDB collection?


Here's a sample of how you can save a JSON string using DocumentDB using the C# SDK.

using (MemoryStream ms = new MemoryStream(Encoding.UTF8.GetBytes(@"{ a : 5, b: 6, c: 7 }"))) {    await client.CreateDocumentAsync(collectionSelfLink,        Document.LoadFrom<Document>(ms));}