question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JmesPath syntax when there is a dot in key

See original GitHub issue

I have been trying to come up with appropriate JmesPath when there is a dot (“.”) in the key.

{
  "some.key": 10
}

I am not sure how should I access the value for such or complex cases where the key has a dot.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
springcompcommented, Jan 22, 2021

@neeraj9 sorry for the misunderstanding.

This must be a bug. Thanks for reporting I will have a look.

1reaction
neeraj9commented, Jan 22, 2021

Thanks @springcomp thanks for the prompt revert. I made multiple attempts but could not do with your .NET library. It will be great if you have a sample or can point me to the usage of your library where this can be achieved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Escape '.' in JMESPath
I just figured it out. ... Basically, any key name with special characters need to be quoted within the search string. With your...
Read more >
JMESPath Cannot query values containing a dot in the key
Trying to query specific values from a work-item using the az boards cli with the --query parameter fails as some of the keys...
Read more >
JMESPath Specification
The literal values true/false/null are only equal to their own literal values. Two JSON objects are equal if they have the same set...
Read more >
JMESPath Tutorial
JMESPath Tutorial¶. This is a tutorial of the JMESPath language. JMESPath is a query language for JSON. You can extract and transform elements...
Read more >
Functions
Motivation¶. Functions allow users to easily transform and filter data in JMESPath expressions. As JMESPath is currently implemented, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found