# JsonPath not working

**URL:** <https://discuss.google.dev/t/jsonpath-not-working/888>\
**Category:** Apigee\
**Tags:** api-runtime\
**Created:** [October 28, 2015, 4:00pm UTC](https://discuss.google.dev/t/jsonpath-not-working/888 "2015-10-28T16:00:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [October 28, 2015, 4:00pm UTC](https://discuss.google.dev/t/jsonpath-not-working/888/1 "2015-10-28T16:00:45Z")

</div>

I am trying to apply the JsonPath:**$.Party.aRolePlayer.Person.Registration[?(@.typeName = ‘ECN’)].externalReference**

on the following Json and it is not working. I get a blank response. It works fine [https://jsonpath.curiousconcept.com/](https://jsonpath.curiousconcept.com/).

```auto
{ 
        "Party": { 
                "retrievalLevel": 2099, 
                "aRolePlayer": { 
                        "Person": { 
                                "Registration": [ 
                                        { 
                                                "typeName": "something1", 
                                                "externalReference": "abcdefgh" 
                                        }, { 
                                                "typeName": "something2", 
                                                "externalReference": "12345678" 
                                        } 
                                ] 
                        } 
                } 
        } 
} 

```

I am guessing the JsonPath implementation inside EDGE do not support this particular syntax ?

---

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [October 28, 2015, 4:14pm UTC](https://discuss.google.dev/t/jsonpath-not-working/888/2 "2015-10-28T16:14:06Z")

</div>

I know we have a bug in Edge which can’t handle with complex json with nested json structure. See [https://apigeesc.atlassian.net/browse/APIRT-860](https://apigeesc.atlassian.net/browse/APIRT-860) for more details. It is not fixed yet.

---

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [October 28, 2015, 9:45pm UTC](https://discuss.google.dev/t/jsonpath-not-working/888/3 "2015-10-28T21:45:25Z")

</div>

Thanks [@arghya das](https://community.apigee.com/users/153/adasapigeecom.html)

---

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [October 29, 2015, 12:38am UTC](https://discuss.google.dev/t/jsonpath-not-working/888/4 "2015-10-29T00:38:53Z")

</div>

…and your workaround, of course, is to just use a Javascript callout to extract that field.

---

<div class="post-metadata">

**Author:** ![dchiesa1](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/dchiesa1/32/15641_2.png) [@dchiesa1](https://discuss.google.dev/u/dchiesa1)\
**Post date:** [August 11, 2025, 3:22pm UTC](https://discuss.google.dev/t/jsonpath-not-working/888/5 "2025-08-11T15:22:36Z")

</div>

> [@anonymous8](#):
>
> $.Party.aRolePlayer.Person.Registration[?(@.typeName = ‘ECN’)].externalReference

This question is from a long time ago, of course… but as of 5-6 years ago, at least, this works in Apigee. Using this JSON:

```json
{
  "Party": {
    "retrievalLevel": 2099,
    "aRolePlayer": {
      "Person": {
        "Registration": [
          {
            "typeName": "ECN",
            "externalReference": "abcdefgh"
          },
          {
            "typeName": "something2",
            "externalReference": "12345678"
          }
        ]
      }
    }
  }
}

```

with this query

```console
$.Party.aRolePlayer.Person.Registration[?(@.typeName == 'ECN')].externalReference

```

I get the expected

```json
[
  "abcdefgh"
]

```
