c# anonymous object initializer code example Example: how to access items inside anonymous object string str = (string)jsonObj.SelectToken("prop1.prop2");