I got the following exception in the foreach
statement of my code snippet below:
exception:System.InvalidCastException: Cannot cast from source type to destination type.
I took a closer look at LitJson.JsonData
. It does have the internal class OrderedDictionaryEnumerator : IDictionaryEnumerator
implementation. I am not sure what is missing. Any ideas?
protected static IDictionary<string, object> JsonToDictionary(JsonData in_jsonObj)
{
foreach (KeyValuePair<string, JsonData> child in in_jsonObj)
{
...
}
}