RuntimeBinderException when parsing json with Newtonsoft.Json

前端 未结 3 1495
忘掉有多难
忘掉有多难 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:40

    The value that you're seeing is the ToString() value. What you're looking for is:

    response["_links"]
    

    For a full example see: http://james.newtonking.com/projects/json/help/html/ModifyJson.htm

提交回复
热议问题