I have a document that contains a embedded document .
Lets say document has following structure
{
username: "john",
name: "John Crouch",
address: { "city": "Fortworth", "state": "Texas", "country": "United States" },
phone: "3594584"
}
Document.Properties gives me A Dictionary<string , objects> so to access address inner properties I have do a typecast of Document.Properties["address"] . but I tried casting this as IDictionary<string , object > and Document which throws a typeCast exception .
However in Java I am able to cast inner document as (Map<String ,Object>)document.get("address")) .