Title: Make it easy to use with Jackson · Issue #47 · socketio/engine.io-server-java · GitHub
Open Graph Title: Make it easy to use with Jackson · Issue #47 · socketio/engine.io-server-java
X Title: Make it easy to use with Jackson · Issue #47 · socketio/engine.io-server-java
Description: Right now the library has a hard dependency on org.json. This is problematic for two reasons: org.json has a non standard license which makes people wary You many times want your message to be deserialized to a bean type. Creating a JSON...
Open Graph Description: Right now the library has a hard dependency on org.json. This is problematic for two reasons: org.json has a non standard license which makes people wary You many times want your message to be dese...
X Description: Right now the library has a hard dependency on org.json. This is problematic for two reasons: org.json has a non standard license which makes people wary You many times want your message to be dese...
Opengraph URL: https://github.com/socketio/engine.io-server-java/issues/47
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make it easy to use with Jackson","articleBody":"Right now the library has a hard dependency on org.json. This is problematic for two reasons:\r\n1. org.json has a non standard license which makes people wary\r\n2. You many times want your message to be deserialized to a bean type. Creating a `JSONObject` out of the received JSON is purely overhead.\r\n\r\nI haven't looked very deeply into this yet but this code I have in my project does not seem very optimal:\r\n```java\r\n socket.on(\"message\", ee -\u003e {\r\n JSONObject json = (JSONObject) ee[0];\r\n AbstractServerMessage message = objectMapper.readValue(json.toString(), AbstractServerMessage.class);\r\n```","author":{"url":"https://github.com/Artur-","@type":"Person","name":"Artur-"},"datePublished":"2022-03-22T10:01:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/47/engine.io-server-java/issues/47"}
| 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:a6726e48-7b70-7f74-ac30-d5887ac6f733 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B8E6:3BF792:1558BBB:1CF6699:6A4D78F0 |
| html-safe-nonce | d4e8e9e67fcb61d7f3f70941546c74f428c8169f78bd064c3a848d685d9ff4d7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEU2OjNCRjc5MjoxNTU4QkJCOjFDRjY2OTk6NkE0RDc4RjAiLCJ2aXNpdG9yX2lkIjoiMjc4MDU1NDQyODk4NTIxMTEyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 55a96d5669d27da24c623e2b694b70fa40d441b68f31498a5f026be18722661a |
| hovercard-subject-tag | issue:1176543959 |
| 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/socketio/engine.io-server-java/47/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3ce8c8de3f1ac53692a7f57d24b268a3bf1eab5383f494f8934b31232100991e/socketio/engine.io-server-java/issues/47 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3ce8c8de3f1ac53692a7f57d24b268a3bf1eab5383f494f8934b31232100991e/socketio/engine.io-server-java/issues/47 |
| og:image:alt | Right now the library has a hard dependency on org.json. This is problematic for two reasons: org.json has a non standard license which makes people wary You many times want your message to be dese... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Artur- |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7f8e15305e2ab58890ca84b830615e375f5df303cf471cafcba0c08272981be3 |
| turbo-cache-control | no-preview |
| go-import | github.com/socketio/engine.io-server-java git https://github.com/socketio/engine.io-server-java.git |
| octolytics-dimension-user_id | 10566080 |
| octolytics-dimension-user_login | socketio |
| octolytics-dimension-repository_id | 141633330 |
| octolytics-dimension-repository_nwo | socketio/engine.io-server-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 141633330 |
| octolytics-dimension-repository_network_root_nwo | socketio/engine.io-server-java |
| 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 | 8608b0750fc35e283e5ec5b094bff942d7a0e197 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width