Title: $map()[] out wrong result · Issue #324 · IBM/JSONata4Java · GitHub
Open Graph Title: $map()[] out wrong result · Issue #324 · IBM/JSONata4Java
X Title: $map()[] out wrong result · Issue #324 · IBM/JSONata4Java
Description: on https://try.jsonata.org/ data: { "a": [ { "link": "https://abc" } ] } jsonata: $map($$.a,function($v){[""&$v.link,1]})[] output: [ [ "https://abc", 1 ] ] but on JSONata4Java: wrong output: [ [ "[\"https://abc\"]", 1 ] ] ($v auto conve...
Open Graph Description: on https://try.jsonata.org/ data: { "a": [ { "link": "https://abc" } ] } jsonata: $map($$.a,function($v){[""&$v.link,1]})[] output: [ [ "https://abc", 1 ] ] but on JSONata4Java: wrong output: [ [ "...
X Description: on https://try.jsonata.org/ data: { "a": [ { "link": "https://abc" } ] } jsonata: $map($$.a,function($v){[""&$v.link,1]})[] output: [ [ "https://abc...
Opengraph URL: https://github.com/IBM/JSONata4Java/issues/324
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"$map()[] out wrong result","articleBody":"on https://try.jsonata.org/\r\ndata:\r\n`{\r\n \"a\": [\r\n {\r\n \"link\": \"https://abc\"\r\n }\r\n ]\r\n}`\r\njsonata:\r\n`$map($$.a,function($v){[\"\"\u0026$v.link,1]})[]`\r\noutput:\r\n`[\r\n [\r\n \"https://abc\",\r\n 1\r\n ]\r\n]`\r\n\r\nbut on JSONata4Java:\r\nwrong output:\r\n`[ [ \"[\\\"https://abc\\\"]\", 1 ] ]`\r\n($v auto convert to list)\r\n\r\nI use $map()[] to avoid $map() auto convert list one element to element","author":{"url":"https://github.com/anhtu812","@type":"Person","name":"anhtu812"},"datePublished":"2024-10-23T09:21:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/324/JSONata4Java/issues/324"}
| 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:77a67ccf-07cc-5051-fedf-2d6bcfc496ce |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EDB0:D3583:103A7A3:16AC077:6A4DF4D9 |
| html-safe-nonce | 6319af6a7474a9528c04dc573af73abf8d6477ac745ebd309c5d57925d83a76c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFREIwOkQzNTgzOjEwM0E3QTM6MTZBQzA3Nzo2QTRERjREOSIsInZpc2l0b3JfaWQiOiI0ODkwODM5Mzc4MTE5NDg4NzMwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b523a59bc6fae0e69b7dec4a7d646b15b05ae2fa1010d484fee0cd62618085cd |
| hovercard-subject-tag | issue:2607885504 |
| 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/324/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e444ed8c222042baeff511b9351cc2361a46b9b3d9cdeb568f15a13dc17fb9d8/IBM/JSONata4Java/issues/324 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e444ed8c222042baeff511b9351cc2361a46b9b3d9cdeb568f15a13dc17fb9d8/IBM/JSONata4Java/issues/324 |
| og:image:alt | on https://try.jsonata.org/ data: { "a": [ { "link": "https://abc" } ] } jsonata: $map($$.a,function($v){[""&$v.link,1]})[] output: [ [ "https://abc", 1 ] ] but on JSONata4Java: wrong output: [ [ "... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anhtu812 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5818716c93c6a2925b815402541a32814e43a7b1261c322b0c2df75224289566 |
| 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 | f4bb89367ca678f057d79b1abc45d6675b1bd5b2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width