Title: SerializerOptions not passed down in PositionConverter.Read · Issue #18 · GeoJSON-Net/GeoJSON.Text · GitHub
Open Graph Title: SerializerOptions not passed down in PositionConverter.Read · Issue #18 · GeoJSON-Net/GeoJSON.Text
X Title: SerializerOptions not passed down in PositionConverter.Read · Issue #18 · GeoJSON-Net/GeoJSON.Text
Description: Hi, Just noticed an issue with PositionConverter. Whenever the coordinates list contains [-Infinity] or any other string literals, the converter throws an exception. In out code, we do pass SerializationOptions with NumberHandling=JsonNu...
Open Graph Description: Hi, Just noticed an issue with PositionConverter. Whenever the coordinates list contains [-Infinity] or any other string literals, the converter throws an exception. In out code, we do pass Seriali...
X Description: Hi, Just noticed an issue with PositionConverter. Whenever the coordinates list contains [-Infinity] or any other string literals, the converter throws an exception. In out code, we do pass Seriali...
Opengraph URL: https://github.com/GeoJSON-Net/GeoJSON.Text/issues/18
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SerializerOptions not passed down in PositionConverter.Read","articleBody":"Hi, \r\n\r\nJust noticed an issue with PositionConverter. Whenever the coordinates list contains [-Infinity] or any other string literals, the converter throws an exception. \r\nIn out code, we do pass SerializationOptions with NumberHandling=JsonNumberHandling.AllowNamedFloatingPointLiterals; but since it's not passed along in PositionConverter.Read(), the deserialization fails when encountering string literals.\r\n\r\nHere:\r\nhttps://github.com/GeoJSON-Net/GeoJSON.Text/blob/4aea7e60e1a79a3eda3724f4b89d840792a6eb32/src/GeoJSON.Text/Converters/PositionConverter.cs#L47\r\n\r\nFix is simple, just pass the converter as a param of JsonSerialzier.Deserialize(double[]))(ref reader, **options**);\r\n\r\nCheers,\r\nLaura","author":{"url":"https://github.com/mlaban","@type":"Person","name":"mlaban"},"datePublished":"2022-11-16T14:04:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/18/GeoJSON.Text/issues/18"}
| 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:27bf1223-2376-445e-1e9c-9e78c2139e54 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF3A:1E90F:343789:4192A4:697DFF53 |
| html-safe-nonce | ab2bb7120ec9a589de4ba6bd3e11bdbde67e6682d3fd351205ccaea3ff3fde93 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjNBOjFFOTBGOjM0Mzc4OTo0MTkyQTQ6Njk3REZGNTMiLCJ2aXNpdG9yX2lkIjoiMjQ4MDkzMzUyNDY3MzAwMzM0NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cdbb41ebfe601ef1635390c1dcebcb4200c6e496fda6a924a6c4766902e6f48d |
| hovercard-subject-tag | issue:1451668030 |
| 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/GeoJSON-Net/GeoJSON.Text/18/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ca1a47f9ac1049f31cf5526f19547c0eb048751f50a1632a545356227d378638/GeoJSON-Net/GeoJSON.Text/issues/18 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ca1a47f9ac1049f31cf5526f19547c0eb048751f50a1632a545356227d378638/GeoJSON-Net/GeoJSON.Text/issues/18 |
| og:image:alt | Hi, Just noticed an issue with PositionConverter. Whenever the coordinates list contains [-Infinity] or any other string literals, the converter throws an exception. In out code, we do pass Seriali... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mlaban |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/GeoJSON-Net/GeoJSON.Text git https://github.com/GeoJSON-Net/GeoJSON.Text.git |
| octolytics-dimension-user_id | 11492205 |
| octolytics-dimension-user_login | GeoJSON-Net |
| octolytics-dimension-repository_id | 438737712 |
| octolytics-dimension-repository_nwo | GeoJSON-Net/GeoJSON.Text |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 438737712 |
| octolytics-dimension-repository_network_root_nwo | GeoJSON-Net/GeoJSON.Text |
| 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 | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width