JSON.NET JObject - how do I get value from this nested JSON structure

前端 未结 1 393
鱼传尺愫
鱼传尺愫 2020-12-28 16:08

I have this JSON:

{
    \"client_id\": \"26075235\",
    \"client_version\": \"1.0.0\",
    \"event\": \"app.uninstall\",
    \"timestamp\": 1478741247,
             


        
相关标签:
1条回答
  • 2020-12-28 17:11

    SelectToken("data[0].user_id") doesn't work because there isn't an array in your JSON. You should use SelectToken("data.user_id") instead.

    Fiddle: https://dotnetfiddle.net/K0X4ht

    0 讨论(0)
提交回复
热议问题