Closed MJ-DEV91 closed 3 years ago
$.items[?(@.item['@type'] === 'Person')].item.name
appears to be working for me. In looking at source, it appears that @
is only manipulated if folowed by any of .\s)[
.
$.items[?(@.item['@type'] === 'Person')].item.name
appears to be working for me. In looking at source, it appears that@
is only manipulated if folowed by any of.\s)[
.
Thank you. it looks like I didn't do it correctly.
We haven't clearly documented it, and we really need a proper parser in the first place to make this all more consistent, e.g., so you could use backticks anywhere. But glad it worked out.
Hi. There's a field inside the JSON which contains '@', and now I want to escape it. Assume below JSON:
I wanna access the name (items.item.name) with a Query:
I put
@type
inside the backticks, but it's not working.If I had "type" instead of "@type", the below query works fine:
Desktop**