Getting parent of matched element with jsonpath

后端 未结 1 416
南旧
南旧 2021-01-21 18:37

Let\'s say I have a JSON object such as this:

[{
    name: \"A\",
    sub: [
        {prop: \"1\"},
        {prop: \"2\"},
        {prop: \"3\"},
    ]
},
{
             


        
1条回答
  •  一整个雨季
    2021-01-21 19:00

    I ended up using parent instead of query method. As simple as that. I just missed it when I was reading the docs.

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