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
// Code that reproduces problem here const json = { "firstName": "John", "'lastName'": "doe", "address": { "streetAddress": "naist street", "city": "Nara", "postalCode": "630-0192" }, "phoneNumbers": [ { "type": "iPhone", "number": "0123-4567-8888" }, { "type": "home", "number": "0123-4567-8910" } ] } const normalizedPaths = JSONPath({ path: `$["'lastName'"]`, json, resultType: 'path', wrap: false })
now normalizedPaths is undefined expected normalizedPaths should be $["'lastName'"]
The text was updated successfully, but these errors were encountered:
Also getting that. This however works:
const json = { "firstName": "John", "\"lastName\"": "doe", "address": { "streetAddress": "naist street", "city": "Nara", "postalCode": "630-0192" }, "phoneNumbers": [ { "type": "iPhone", "number": "0123-4567-8888" }, { "type": "home", "number": "0123-4567-8910" } ] } const normalizedPaths = JSONPath({ path: `$['"lastName"']`, json, resultType: 'path', wrap: false });
Sorry, something went wrong.
A workaround path for original document is : $[''lastName''] i.e.
$[''lastName'']
const normalizedPaths = JSONPath({ path: `$[''lastName'']`, json, resultType: 'path', wrap: false });
No branches or pull requests
Describe the bug
Code sample or steps to reproduce
Console error or logs
Expected behavior
Expected result
now normalizedPaths is undefined
expected normalizedPaths should be $["'lastName'"]
Environment (IMPORTANT)
Desktop**
The text was updated successfully, but these errors were encountered: