Title: Using jsoncpp::fields() out of struct · Issue #4 · ascheglov/json-cpp · GitHub
Open Graph Title: Using jsoncpp::fields() out of struct · Issue #4 · ascheglov/json-cpp
X Title: Using jsoncpp::fields() out of struct · Issue #4 · ascheglov/json-cpp
Description: Hi, Tell me please, how can I use jsoncpp::fields() out of struct? For example I have a string with JSON and I want to get the fields from this JSON. int a, b; std::string str = R"({"a":1,"b":2})"; jsoncpp::fields(str, "a", a, "b", b); H...
Open Graph Description: Hi, Tell me please, how can I use jsoncpp::fields() out of struct? For example I have a string with JSON and I want to get the fields from this JSON. int a, b; std::string str = R"({"a":1,"b":2})";...
X Description: Hi, Tell me please, how can I use jsoncpp::fields() out of struct? For example I have a string with JSON and I want to get the fields from this JSON. int a, b; std::string str = R"({"a&qu...
Opengraph URL: https://github.com/ascheglov/json-cpp/issues/4
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Using jsoncpp::fields() out of struct","articleBody":"Hi,\n\nTell me please, how can I use `jsoncpp::fields()` out of struct?\nFor example I have a string with JSON and I want to get the fields from this JSON.\n\n``` cpp\nint a, b;\nstd::string str = R\"({\"a\":1,\"b\":2})\";\njsoncpp::fields(str, \"a\", a, \"b\", b);\n```\n\nHow can I do this?\n\nThanks.\n","author":{"url":"https://github.com/niXman","@type":"Person","name":"niXman"},"datePublished":"2015-07-23T09:47:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/4/json-cpp/issues/4"}
| 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:4b0b91a2-d339-ffb0-b2e1-9add04c3a211 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8BF8:E23EB:633234C:830C8BA:6A4B189F |
| html-safe-nonce | 2504c1eb65d49f46902ad581ee02ec59208524be0cdef505c46de427a17f0ad7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QkY4OkUyM0VCOjYzMzIzNEM6ODMwQzhCQTo2QTRCMTg5RiIsInZpc2l0b3JfaWQiOiIzMjIwMTg2NTUxMjU5MTc1MDcyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e980171fc7a1c8fbc2a916ca0867adaa5e1b1cb1b20ca51af9c4a02f367fac7e |
| hovercard-subject-tag | issue:96773420 |
| 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/ascheglov/json-cpp/4/issue_layout |
| twitter:image | https://opengraph.githubassets.com/09e3594e6987177963a64f193f861ae8bb220792968d1849cf4546bb865ee75f/ascheglov/json-cpp/issues/4 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/09e3594e6987177963a64f193f861ae8bb220792968d1849cf4546bb865ee75f/ascheglov/json-cpp/issues/4 |
| og:image:alt | Hi, Tell me please, how can I use jsoncpp::fields() out of struct? For example I have a string with JSON and I want to get the fields from this JSON. int a, b; std::string str = R"({"a":1,"b":2})";... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | niXman |
| hostname | github.com |
| expected-hostname | github.com |
| None | 32bb824b1b6eca924e1bff9b514b06db6b0f109aee81754b85528e4b9fbd34a4 |
| turbo-cache-control | no-preview |
| go-import | github.com/ascheglov/json-cpp git https://github.com/ascheglov/json-cpp.git |
| octolytics-dimension-user_id | 3955351 |
| octolytics-dimension-user_login | ascheglov |
| octolytics-dimension-repository_id | 13079323 |
| octolytics-dimension-repository_nwo | ascheglov/json-cpp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 13079323 |
| octolytics-dimension-repository_network_root_nwo | ascheglov/json-cpp |
| 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 | 0d2c14972d93fbb3b06b7f3488cedc27c3bf76f3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width