I am trying to exclude some fields from Json by jsonPath expression but it doesnt works. I am not able to write properly expression that match just some fields, without excluded.
I have tried to use somethink like this $.personal.[?(!@.email)] but it not works.
I have json like this:
{
"personal": {
"fullName": "full Name",
"firstName": "first Name",
"email": "hello@email.com"
}
}
I tried to use this line to select fields without email field:
$.personal.[?(!@.email)]
But i got only this results or false:
[
"full Name",
"first Name",
"hello@email.com"
]
I would like to have results like this:
[
"full Name",
"first Name"
]