Title: ParseException on valid JSONata with parameter as key in object constructor · Issue #144 · IBM/JSONata4Java · GitHub
Open Graph Title: ParseException on valid JSONata with parameter as key in object constructor · Issue #144 · IBM/JSONata4Java
X Title: ParseException on valid JSONata with parameter as key in object constructor · Issue #144 · IBM/JSONata4Java
Description: Given any input and the following JSONata: ( $myfunction := function ($key, $value) { { $key: $value } }; $myfunction('key', 'value') ) This produces the following error: Exception in thread "main" com.api.jsonata4java.expressions.ParseE...
Open Graph Description: Given any input and the following JSONata: ( $myfunction := function ($key, $value) { { $key: $value } }; $myfunction('key', 'value') ) This produces the following error: Exception in thread "main"...
X Description: Given any input and the following JSONata: ( $myfunction := function ($key, $value) { { $key: $value } }; $myfunction('key', 'value') ) This produces the following error: Exception ...
Opengraph URL: https://github.com/IBM/JSONata4Java/issues/144
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ParseException on valid JSONata with parameter as key in object constructor","articleBody":"Given any input and the following JSONata:\r\n```\r\n(\r\n$myfunction := function ($key, $value) {\r\n {\r\n $key: $value\r\n }\r\n};\r\n$myfunction('key', 'value')\r\n)\r\n```\r\nThis produces the following error:\r\n```\r\nException in thread \"main\" com.api.jsonata4java.expressions.ParseException: line 4:4 at [@11,51:54='$key',\u003c41\u003e,4:4]: no viable alternative at input 'function($key,$value){{$key'\r\n```\r\n\r\nIt produces no error on https://try.jsonata.org/\r\nIt seems that a param as key for object constructors is not allowed, but it should be.\r\n","author":{"url":"https://github.com/robertvanloenhout","@type":"Person","name":"robertvanloenhout"},"datePublished":"2021-03-15T11:29:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/144/JSONata4Java/issues/144"}
| 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:31bace78-6161-58e1-0367-2e04b3a1196e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C32C:3E6EAA:67D2447:928FE1A:6A4FEB2E |
| html-safe-nonce | a975fd77f82ef664212f0683abf4e5b039e1383b6bd85899e50de302f42bb59e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzJDOjNFNkVBQTo2N0QyNDQ3OjkyOEZFMUE6NkE0RkVCMkUiLCJ2aXNpdG9yX2lkIjoiNTc0NDc4NTc0Mzk0MDY3NjM5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9b3f2cb8849d0387707ed6757476de976b52d4cf659674eb95ba8cf5055d08d5 |
| hovercard-subject-tag | issue:831715733 |
| 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/IBM/JSONata4Java/144/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6c38d864873161dcc933767682a72c5c0ae3ec41052de06e55f70e4d690dfda1/IBM/JSONata4Java/issues/144 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6c38d864873161dcc933767682a72c5c0ae3ec41052de06e55f70e4d690dfda1/IBM/JSONata4Java/issues/144 |
| og:image:alt | Given any input and the following JSONata: ( $myfunction := function ($key, $value) { { $key: $value } }; $myfunction('key', 'value') ) This produces the following error: Exception in thread "main"... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | robertvanloenhout |
| hostname | github.com |
| expected-hostname | github.com |
| None | 19b98c3d9767bb8a56238a89ff8401d1cbdf3bc5c353799aacf49fe6c76b4b7c |
| turbo-cache-control | no-preview |
| go-import | github.com/IBM/JSONata4Java git https://github.com/IBM/JSONata4Java.git |
| octolytics-dimension-user_id | 1459110 |
| octolytics-dimension-user_login | IBM |
| octolytics-dimension-repository_id | 169904880 |
| octolytics-dimension-repository_nwo | IBM/JSONata4Java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 169904880 |
| octolytics-dimension-repository_network_root_nwo | IBM/JSONata4Java |
| 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 | f7e270be010aa4de2871991025fbb97f3afe2bcb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width