RuntimeBinderException when parsing json with Newtonsoft.Json

前端 未结 3 1493
忘掉有多难
忘掉有多难 2021-01-14 06:09

I\'m trying to parse simple json to dynamic object in Windows phone 8. I\'m using Newtonsoft.JSON library with this code:

dynamic response = JObject.Parse(re         


        
3条回答
  •  囚心锁ツ
    2021-01-14 06:58

    I was hitting something similar in VS 2015. The approach using [] to access the properties works, however if I enable "Just My Code" in Tools > Options > Debugging > General. I was able to use the properties on the dynamic objects as normal e.g. code like: response._links.streams; worked.

    See this other post with a similar question

提交回复
热议问题