Title: JSON key starting with numeric value throwing error. · Issue #228 · JSONPath-Plus/JSONPath · GitHub
Open Graph Title: JSON key starting with numeric value throwing error. · Issue #228 · JSONPath-Plus/JSONPath
X Title: JSON key starting with numeric value throwing error. · Issue #228 · JSONPath-Plus/JSONPath
Description: Describe the bug Getting this error when running: JSONPath( $..returnDetails[0].rateOfReturn.1dCload (path), rateOfReturn: { '1dCload': 'string', '1dCnoload': 'string', '5dCLoad': 'string', '5dCNoload': 'string', '7dCLoad': 'string', '7d...
Open Graph Description: Describe the bug Getting this error when running: JSONPath( $..returnDetails[0].rateOfReturn.1dCload (path), rateOfReturn: { '1dCload': 'string', '1dCnoload': 'string', '5dCLoad': 'string', '5dCNol...
X Description: Describe the bug Getting this error when running: JSONPath( $..returnDetails[0].rateOfReturn.1dCload (path), rateOfReturn: { '1dCload': 'string', '1dCnoload': 'string...
Opengraph URL: https://github.com/JSONPath-Plus/JSONPath/issues/228
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"JSON key starting with numeric value throwing error.","articleBody":"\u003c!--\r\n**PLEASE NOTE: This project is not currently being very actively developed.**\r\n--\u003e\r\n\r\n## Describe the bug\r\nGetting this error when running:\r\n JSONPath( $..returnDetails[0].rateOfReturn.1dCload (path),\r\nrateOfReturn: {\r\n '1dCload': 'string',\r\n '1dCnoload': 'string',\r\n '5dCLoad': 'string',\r\n '5dCNoload': 'string',\r\n '7dCLoad': 'string',\r\n '7dCNoload': 'string',\r\n '1mCLoad': 'string',\r\n '1mCNoload': 'string',\r\n '3mCLoad': 'string',\r\n '3mCNoload': 'string',\r\n '6mCLoad': 'string',\r\n '6mCNoload': 'string',\r\n '9mCLoad': 'string',\r\n '1yCLoad': 'string',\r\n '1yCNoload': 'string',\r\n '2yALoad': 'string',\r\n '2yANoload': 'string',\r\n '2yCLoad': 'string',\r\n '2yCNoload': 'string',\r\n '3yALoad': 'string',\r\n '3yANoload': 'string',\r\n '3yCLoad': 'string',\r\n '3yCNoload': 'string',\r\n '4yALoad': 'string',\r\n '4yANoload': 'string',\r\n '4yCLoad': 'string',\r\n '4yCNoload': 'string',\r\n '5yALoad': 'string',\r\n '5yANoload': 'string',\r\n '5yCLoad': 'string',\r\n '5yCNoload': 'string',\r\n '6yALoad': 'string',\r\n '6yANoload': 'string',\r\n '6yCLoad': 'string',\r\n '6yCNoload': 'string',\r\n '7yALoad': 'string',\r\n '7yANoload': 'string',\r\n '7yCLoad': 'string',\r\n '7yCNoload': 'string',\r\n '8yALoad': 'string',\r\n '8yANoload': 'string',\r\n '8yCLoad': 'string',\r\n '8yCNoload': 'string',\r\n '9yALoad': 'string',\r\n '9yANoload': 'string',\r\n '9yCLoad': 'string',\r\n ror_9yCNoload: 'string',\r\n '10yALoad': 'string',\r\n '10yANoload': 'string',\r\n '10yCLoad': 'string',\r\n '10yCNoload': 'string',\r\n '15yALoad': 'string',\r\n '15yANoload': 'string',\r\n '15yCLoad': 'string',\r\n '15yCNoload': 'string',\r\n '20yALoad': 'string',\r\n '20yANoload': 'string',\r\n '20yCLoad': 'string',\r\n '20yCNoload': 'string',\r\n mtdCLoad: 'string',\r\n mtdCNoload: 'string',\r\n qtdCLoad: 'string',\r\n qtdCNoload: 'string',\r\n ytdCLoad: 'string',\r\n ytdCNoload: 'string',\r\n fytdIdxCLoad: 'string',\r\n fytdIdxCNoload: 'string',\r\n advIncpALoad: 'string',\r\n advIncpANoload: 'string',\r\n advIncpCLoad: 'string',\r\n advIncpCNoload: 'string',\r\n idxfIncpALoad: 'string',\r\n idxfIncpANoload: 'string',\r\n idxfIncpCLoad: 'string',\r\n idxfIncpCNoload: 'string',\r\n idxfNonsincpALoad: 'string',\r\n idxfNonsincpANoload: 'string',\r\n idxfNonsincpCLoad: 'string',\r\n idxfNonsincpCNoload: 'string',\r\n idxfSincpALoad: 'string',\r\n idxfSincpANoload: 'string',\r\n idxfSincpCLoad: 'string',\r\n idxfSincpCNoload: 'string',\r\n nonSincpALoad: 'string',\r\n nonSincpANoload: 'string',\r\n nonSincpCLoad: 'string',\r\n nonSincpCNoload: 'string',\r\n incpALoad: 'string',\r\n incpANoload: 'string',\r\n incpCLoad: 'string',\r\n incpCNoload: 'string',\r\n sincpALoad: 'string',\r\n sincpNoload: 'string',\r\n sincpCLoad: 'string',\r\n sincpCNoload: 'string',\r\n '6mtdCLoad': 'string',\r\n '6mtdCNoload': 'string',\r\n fytdCLoad: 'string',\r\n fytdCNoload: 'string'\r\n }\r\n}\r\n\r\n \r\n{\r\n \"errors\": [\r\n {\r\n \"message\": \"Parse error on line 1:\\n...ls[0].rateOfReturn.1dCload\\n-----------------------^\\nExpecting 'DOT', 'DOT_DOT', '[', got 'IDENTIFIER'\",\r\n \"name\": \"Error\",\r\n \"stack\": \"Error: Parse error on line 1:\\n...ls[0].rateOfReturn.1dCload\\n-----------------------^\\nExpecting 'DOT', 'DOT_DOT', '[', got 'IDENTIFIER'\\n at Parser.parseError (/Users/cxho3/Sandbox/service-virtualization-framework/node_modules/jsonpath/generated/parser.js:166:15)\\n at Parser.parser.yy.parseError (/Users/cxho3/Sandbox/service-virtualization-framework/node_modules/jsonpath/lib/parser.js:13:17)\\n at Parser.parse (/Users/cxho3/Sandbox/service-virtualization-framework/node_modules/jsonpath/generated/parser.js:224:22)\\n at JSONPath.nodes (/Users/cxho3/Sandbox/service-virtualization-framework/node_modules/jsonpath/lib/index.js:118:26)\\n at JSONPath.apply (/Users/cxho3/Sandbox/service-virtualization-framework/node_modules/jsonpath/lib/index.js:36:20)\\n at modifyResponsePayload (/Users/cxho3/Sandbox/service-virtualization-framework/lib/util/modifyGetResultset.js:949:20)\\n at Object.selectFromDB (/Users/cxho3/Sandbox/service-virtualization-framework/lib/util/modifyGetResultset.js:1075:27)\\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\\n at async virtualizeAPI (eval at \u003canonymous\u003e (/Users/cxho3/Sandbox/service-virtualization-framework/node_modules/mountebank/src/models/responseResolver.js:63:34), \u003canonymous\u003e:165:58)\\n at async Object.resolve (/Users/cxho3/Sandbox/service-virtualization-framework/node_modules/mountebank/src/models/responseResolver.js:345:24)\"\r\n }\r\n ]\r\n}\r\n\r\n## Code sample or steps to reproduce\r\n\r\n```js\r\n// Code that reproduces problem here\r\n```\r\n\r\n### Console error or logs\r\n\r\n## Expected behavior\r\n\r\nexpect [ 'string' ]\r\n\r\n## Expected result\r\n[ 'string' ]\r\n\r\n## Environment (IMPORTANT)\r\n \"jsonpath-plus\": \"^10.0.4\",\r\n\r\n## Desktop**\r\nMac \r\nNode v22.9.0\r\n\r\n## Additional context\r\n\r\n\u003c!-- Add any other context about the problem here. --\u003e\r\n","author":{"url":"https://github.com/clifrocks311","@type":"Person","name":"clifrocks311"},"datePublished":"2024-10-17T22:27:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/228/JSONPath/issues/228"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:87b8caf0-ea61-6728-b28b-67bd82c2b21d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B8EE:3E7C4A:1991A5A:2207F0D:696EDD00 |
| html-safe-nonce | 78abc4d39909f9ffaa6148a021b1c4876ab0d9efb05a18b3fb8d76f0db475791 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEVFOjNFN0M0QToxOTkxQTVBOjIyMDdGMEQ6Njk2RUREMDAiLCJ2aXNpdG9yX2lkIjoiNTAwMzA3NDU5MTYwNTU3OTAwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1ca093f7949277b90a4e26fe23134e9ab0eb2dae02a1e1db96b1d0ae886e0f4d |
| hovercard-subject-tag | issue:2595878321 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JSONPath-Plus/JSONPath/228/issue_layout |
| twitter:image | https://opengraph.githubassets.com/47241b0a3b3bee58d9fa1919418680912602d4cea24eda702db2ebf0d7402e98/JSONPath-Plus/JSONPath/issues/228 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/47241b0a3b3bee58d9fa1919418680912602d4cea24eda702db2ebf0d7402e98/JSONPath-Plus/JSONPath/issues/228 |
| og:image:alt | Describe the bug Getting this error when running: JSONPath( $..returnDetails[0].rateOfReturn.1dCload (path), rateOfReturn: { '1dCload': 'string', '1dCnoload': 'string', '5dCLoad': 'string', '5dCNol... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | clifrocks311 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee |
| turbo-cache-control | no-preview |
| go-import | github.com/JSONPath-Plus/JSONPath git https://github.com/JSONPath-Plus/JSONPath.git |
| octolytics-dimension-user_id | 67874603 |
| octolytics-dimension-user_login | JSONPath-Plus |
| octolytics-dimension-repository_id | 1716525 |
| octolytics-dimension-repository_nwo | JSONPath-Plus/JSONPath |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1716525 |
| octolytics-dimension-repository_network_root_nwo | JSONPath-Plus/JSONPath |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 39aed5006635ab6f45e6b77d23e73b08a00272a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width