I have a json which looks likes this:
[
{"First Name": "xyz", "Last Name": "abc", "Name": "name1"},
{"First Name": "abc", "Last Name": "xyz", "Name": "name2"},
{"First Name": "abcd", "Last Name": "wxyz", "Name": "name3"}
]
I am able to easily extract entries which do not have spaces in them. E.g.:
[?Name=='name1']
Which gives:
[
{ "First Name": "xyz", "Last Name": "abc", "Name": "name1" }
]
However, I am unable to get entries where the keys have spaces in them. e.g.:
[?First Name =='xyz']
results inSyntax error: expected Rbracket, got: UnquotedIdentifier
[?'First Name' =='xyz']
results in[]
Am I missing something here?
JMESPath version used in Python:
>>> jmespath.__version__
'0.10.0'