We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given a string containing embedded json, parse the json, and return the result.
This might be implemented something like:
registerFunction('parseJson', ([json]) => JSON.parse(json), [{types: [TYPE_STRING]}]);
Examples:
jmespath.search("\"true\"", "parseJson(@)") // OUTPUTS: true jmespath.search('"{\"a\":1, \"b\":\"c\"}"', "parseJson(@)") // OUTPUTS {"a":1, "b":"c"}
The pattern of embedding json inside of strings in json is, unfortunately, somewhat common. For example, in AWS APIs.
The text was updated successfully, but these errors were encountered:
JSON Functions unofficial proposal.
Sorry, something went wrong.
feat: Add to_json and from_json functions
f8dea08
JEP for adding to_json and from_json functions Closes: jmespath#8
Successfully merging a pull request may close this issue.
Given a string containing embedded json, parse the json, and return the result.
This might be implemented something like:
Examples:
The pattern of embedding json inside of strings in json is, unfortunately, somewhat common. For example, in AWS APIs.
The text was updated successfully, but these errors were encountered: