Title: The $round function returns an empty string when passed a null object · Issue #308 · IBM/JSONata4Java · GitHub
Open Graph Title: The $round function returns an empty string when passed a null object · Issue #308 · IBM/JSONata4Java
X Title: The $round function returns an empty string when passed a null object · Issue #308 · IBM/JSONata4Java
Description: When passing a null object to the round function, the returned value is an empty string. A null return value would have been expected (as provided by the javascript implementation of this function). By returning a string, subsequent expr...
Open Graph Description: When passing a null object to the round function, the returned value is an empty string. A null return value would have been expected (as provided by the javascript implementation of this function)...
X Description: When passing a null object to the round function, the returned value is an empty string. A null return value would have been expected (as provided by the javascript implementation of this function)...
Opengraph URL: https://github.com/IBM/JSONata4Java/issues/308
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The $round function returns an empty string when passed a null object","articleBody":"When passing a null object to the round function, the returned value is an empty string. A null return value would have been expected (as provided by the javascript implementation of this function). By returning a string, subsequent expressions that may check for zero values, or the existence of a value can fail.\r\n\r\n**Example using jsonata4java version 2.4.9**\r\n```\r\n$data := {\r\n \"a\": 1,\r\n \"b\": 2\r\n};\r\n\r\n$result := $round( $data.xyz, 0);\r\n```\r\nExpected result: null (i.e: no result)\r\nActual result: `\"\"`\r\nResult using Javascript version 2.0.5: null / undefined / ** no match **","author":{"url":"https://github.com/brainesy","@type":"Person","name":"brainesy"},"datePublished":"2024-05-23T05:27:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/308/JSONata4Java/issues/308"}
| 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:a6010058-078c-c67a-cfd2-56d1787d71b3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A9A2:297ED:8B2CC0:C9FA85:6A4E141C |
| html-safe-nonce | 180913e034da28e008771be222d2d0bce2b99b0be317a645062844cbe3c3b656 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUEyOjI5N0VEOjhCMkNDMDpDOUZBODU6NkE0RTE0MUMiLCJ2aXNpdG9yX2lkIjoiNjgxODgwNDA2MDc1NTIwMzEwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3db9351ab7708e748241040e57e725cd07e17691856c2cc8ecce7f5f616654a5 |
| hovercard-subject-tag | issue:2311974347 |
| 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/308/issue_layout |
| twitter:image | https://opengraph.githubassets.com/08280e9370d233cb93cd719674099cf1ad2e476b339bfec69c29cf8ff253ea06/IBM/JSONata4Java/issues/308 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/08280e9370d233cb93cd719674099cf1ad2e476b339bfec69c29cf8ff253ea06/IBM/JSONata4Java/issues/308 |
| og:image:alt | When passing a null object to the round function, the returned value is an empty string. A null return value would have been expected (as provided by the javascript implementation of this function)... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | brainesy |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| 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 | ea9187571e3edc5f2780f750631138669441ca50 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width