{"id":24465,"date":"2026-05-06T20:02:16","date_gmt":"2026-05-06T12:02:16","guid":{"rendered":"https:\/\/blog.iyatt.com\/?p=24465"},"modified":"2026-05-06T20:02:27","modified_gmt":"2026-05-06T12:02:27","slug":"%e5%b7%a5%e5%85%b7%e6%8e%a8%e8%8d%90%ef%bc%9ac-%e5%8f%af%e7%94%a8%e7%9a%84-json-%e5%ba%93%e3%80%90nlohmann-json%e3%80%91","status":"publish","type":"post","link":"https:\/\/blog.iyatt.com\/?p=24465","title":{"rendered":"\u5de5\u5177\u63a8\u8350\uff1a\u5f00\u6e90\u7684 C++  json \u5e93\u3010nlohmann\/json\u3011"},"content":{"rendered":"<p>\u9879\u76ee\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/nlohmann\/json\">https:\/\/github.com\/nlohmann\/json<\/a><\/p>\n<p>2026\/5\/6<br \/>\n\u8fd1\u671f\u6211\u5728\u5f00\u53d1\u4e00\u4e2a <a href=\"https:\/\/github.com\/IYATT-yx\/IYATTyxCadTools\" title=\"CAD \u63d2\u4ef6\">CAD \u63d2\u4ef6<\/a>\u3002\u5f00\u59cb\u7684\u65f6\u5019\u6709\u4e2a\u529f\u80fd\u7684\u8bbe\u7f6e\u662f\u5b58\u50a8\u5728\u6ce8\u518c\u8868\u7684\uff0c\u4f46\u662f\u51c6\u5907\u6269\u5145\u529f\u80fd\u7684\u65f6\u5019\u5c31\u6bd4\u8f83\u9ebb\u70e6\u4e86\uff0c\u800c\u4e14\u8bbe\u7f6e\u4e0d\u80fd\u590d\u5236\u3002\u6211\u5c31\u627e\u5230\u4e86\u8fd9\u4e2a\u5e93\uff0c\u4eca\u5929\u5df2\u7ecf\u5b8c\u6210\u4e86\u91cd\u6784\uff0c\u6539\u4e3a json \u6765\u4fdd\u5b58\u914d\u7f6e\u4fe1\u606f\uff0c\u540e\u671f\u589e\u52a0\u8bbe\u7f6e\u9879\u4e5f\u4fbf\u6377\uff0c\u800c\u4e14\u8fd8\u80fd\u590d\u5236\u5230\u522b\u7684\u7535\u8111\u76f4\u63a5\u6cbf\u7528\u914d\u7f6e\uff0c\u4e0d\u9700\u8981\u5206\u522b\u53bb\u8bbe\u7f6e\u3002<br \/>\n\u53ef\u60dc\u7684\u662f\u5bf9 C++ \u6a21\u5757\u652f\u6301\u8fd8\u5728\u8bd5\u9a8c\u9636\u6bb5\uff0c\u6211\u8fd9\u91cc\u9879\u76ee\u662f\u76f4\u63a5\u4f7f\u7528\u7684 C++23 \u6807\u51c6\uff0c\u9664\u4e86\u6846\u67b6\u6a21\u677f\u548c MFC \u76f8\u5173\u7684\u90e8\u5206\uff0c\u6211\u90fd\u8fdb\u884c\u6a21\u5757\u5316\u4e86\u3002\u6211\u5199\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u5305\u88c5\uff0c\u6765\u5b9e\u73b0\u6a21\u5757\u5316\u3002<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2026\/05\/image-1778068675389.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 945px; --smush-placeholder-aspect-ratio: 945\/764;\" \/><\/p>\n<p>\u4f46\u662f\u5305\u88c5\u4e5f\u4e0d\u5f7b\u5e95\uff0cC++23 \u8fd8\u6ca1\u652f\u6301\u53cd\u5c04\u3002nlohmann\/json \u91cc\u9762\u7528\u5b8f\u95f4\u63a5\u5b9e\u73b0\u4e86\u63a5\u8fd1\u53cd\u5c04\u7684\u6548\u679c\uff0c\u505a\u5230\u7ed3\u6784\u4f53\u7684\u5e8f\u5217\u5316\u548c\u53cd\u5e8f\u5217\u5316\u3002\u6a21\u5757\u662f\u4e0d\u80fd\u5bfc\u51fa\u5b8f\u7684\uff0c\u6240\u4ee5\u6211\u4f7f\u7528\u5b83\u7684\u5b8f\u7684\u90e8\u5206\u8fd8\u662f\u9700\u8981\u5f15\u7528\u5934\u6587\u4ef6\uff0c\u8fd9\u4e2a\u6ca1\u6cd5\u5305\u88c5\u8d77\u6765\u3002<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2026\/05\/image-1778068881997.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 923px; --smush-placeholder-aspect-ratio: 923\/605;\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9879\u76ee\u5730\u5740\uff1ahttps:\/\/github.com\/nlohmann\/json 2026\/5\/6 \u8fd1\u671f\u6211\u5728\u5f00\u53d1\u4e00\u4e2a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"zakra_page_container_layout":"customizer","zakra_page_sidebar_layout":"customizer","zakra_remove_content_margin":false,"zakra_sidebar":"customizer","zakra_transparent_header":"customizer","zakra_logo":0,"zakra_main_header_style":"default","zakra_menu_item_color":"","zakra_menu_item_hover_color":null,"zakra_menu_item_active_color":null,"zakra_menu_active_style":"","zakra_page_header":true,"_lmt_disableupdate":"no","_lmt_disable":"no","footnotes":""},"categories":[1,616,589,618,621,575],"tags":[1014,2120,2121,2122,2123],"class_list":["post-24465","post","type-post","status-publish","format-standard","hentry","category-all","category-autocad","category-c-c","category-cad-cam","category-objectarx","category-575","tag-c","tag-json","tag-nlohmann","tag-2122","tag-2123"],"modified_by":"IYATT-yx","_links":{"self":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/24465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=24465"}],"version-history":[{"count":2,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/24465\/revisions"}],"predecessor-version":[{"id":24469,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/24465\/revisions\/24469"}],"wp:attachment":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=24465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=24465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=24465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}