{"id":5957,"date":"2025-01-16T11:47:16","date_gmt":"2025-01-16T03:47:16","guid":{"rendered":"https:\/\/blog.qdac.cc\/?p=5957"},"modified":"2025-01-16T11:47:16","modified_gmt":"2025-01-16T03:47:16","slug":"%e6%95%99%e7%a8%8bqjson-4-0-%e4%b8%8e-3-0-%e5%8a%9f%e8%83%bd%e7%89%b9%e6%80%a7%e5%af%b9%e6%af%94","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=5957","title":{"rendered":"[\u6559\u7a0b]QJSON 4.0 \u4e0e 3.0 \u529f\u80fd\u7279\u6027\u5bf9\u6bd4"},"content":{"rendered":"\n<p>QJSON 4.0 \u76ee\u5f55\u5df2\u7ecf\u5904\u4e8e\u57fa\u672c\u53ef\u7528\u72b6\u6001\uff0c\u53ef\u4ee5\u4f9b\u5927\u5bb6\u5728\u65b0\u7684\u5f00\u53d1\u9879\u76ee\u4e2d\u8bd5\u7528\uff0c\u5c31\u76ee\u524d\u7248\u672c\u6765\u8bf4\uff0c4.0 \u76f8\u6bd4 3.0 \u7248\u6709\u4ee5\u4e0b\u5927\u4e0d\u540c\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u67b6\u6784\u53d8\u5316<\/strong>\n<ul class=\"wp-block-list\">\n<li>3.0 \u7248 TQJson \u662f\u4e00\u4e2a\u7c7b (class)\uff0c4.0 \u7248\u662f\u4e00\u4e2a\u8bb0\u5f55\u7c7b\u578b (record) \u5e76\u4e14\u6539\u540d\u4e3a TQJsonNode \u4ee5\u907f\u514d\u548c 3.0 \u7248\u672c\u51b2\u7a81<\/li>\n\n\n\n<li>4.0 \u7248\u5b9e\u73b0\u4e86 IQSerializeReader \u548c IQSerializeWriter \u63a5\u53e3\uff0c\u53ef\u4ee5\u7edf\u4e00\u591a\u79cd\u683c\u5f0f\u7684\u5e8f\u5217\u5316\u548c\u53cd\u5e8f\u5217\u5316<\/li>\n\n\n\n<li>4.0 \u7248\u5c06\u652f\u6301 Free Pascal 3.3.1 + \u7248\u672c\uff0c3.0 \u7248\u672c\u4e0d\u652f\u6301<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u5185\u5b58\u7ba1\u7406<\/strong>\n<ul class=\"wp-block-list\">\n<li>4.0 \u652f\u6301\u5b57\u7b26\u4e32\u7f13\u5b58\u6a21\u5f0f\uff0c\u91cd\u590d\u7684\u5b57\u7b26\u4e32\u5185\u5bb9\uff0c\u53ea\u4f1a\u4fdd\u5b58\u4e00\u4e2a\u7248\u672c<\/li>\n\n\n\n<li>4.0 \u4f7f\u7528\u53cc\u5411\u94fe\u8868\u800c\u4e0d\u662f\u6570\u7ec4\u6765\u5b58\u50a8\u540c\u7ea7\u7684\u5144\u5f1f\u7ed3\u70b9\uff0c\u5206\u914d\u5185\u5b58\u6b21\u6570\u76f8\u6bd4\u6570\u7ec4\u6a21\u5f0f\u66f4\u5c11<\/li>\n\n\n\n<li>4.0 \u652f\u6301\u6309\u6570\u7ec4\u65b9\u5f0f\u8bbf\u95ee\uff0c\u4f46\u5982\u679c\u4f60\u4e0d\u4f7f\u7528\uff0c\u5b83\u6c38\u8fdc\u4e0d\u4f1a\u5206\u914d\u6570\u636e\u7d22\u5f15\uff0c\u4ece\u800c\u8282\u7701\u5f00\u9500<\/li>\n\n\n\n<li>4.0 \u5bf9\u5e8f\u5217\u5316\u8fdb\u884c\u4e86\u4e13\u95e8\u7684\u4f18\u5316\uff0c\u4ece\u6d41\u4e2d\u52a0\u8f7d\u5927 JSON \u548c\u5c06 JSON \u6570\u636e\u4fdd\u5b58\u5230\u6d41\u90fd\u4f1a\u8282\u7701\u5f88\u591a\u5185\u5b58<\/li>\n\n\n\n<li>4.0 \u901a\u8fc7\u652f\u6301\u7f13\u5b58\u6a21\u5f0f\u548c\u53ea\u8fdb\u6a21\u5f0f\uff0c\u53ef\u4ee5\u5927\u5e45\u8282\u7701\u5185\u5b58\u5360\u7528\u548c\u5206\u914d\u6b21\u6570<\/li>\n\n\n\n<li>\u603b\u4f53\u6765\u8bf4\uff0c4.0 \u5728\u4fdd\u8bc1\u6027\u80fd\u7684\u524d\u63d0\u4e0b\uff0c\u5bf9\u5185\u5b58\u4f7f\u7528\u60c5\u51b5\u66f4\u514b\u5236\uff0c\u7b97\u6cd5\u4e5f\u66f4\u590d\u6742\u4e00\u4e9b\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u6027\u80fd\u53d8\u5316<\/strong>\n<ul class=\"wp-block-list\">\n<li>\u5bf9\u4e8e\u904d\u5386\u7684\u573a\u666f\uff0c4.0 \u56e0\u4e3a\u4f7f\u7528\u53cc\u5411\u94fe\u63a5\u8868\uff0cForEach \u6216\u76f4\u63a5\u901a\u8fc7 FirstChild->LastChild \u904d\u5386\u90fd\u5f88\u65b9\u4fbf\uff0c\u7406\u8bba\u6027\u80fd\u548c 3.0 \u4e00\u81f4<\/li>\n\n\n\n<li>\u5bf9\u4e8e\u968f\u673a\u53ea\u8bfb\u573a\u666f\uff0c4.0 \u56e0\u4e3a\u5728\u9996\u6b21\u968f\u673a\u8bbf\u95ee\u65f6\u4f1a\u7f13\u5b58\u7d22\u5f15\uff0c\u7eaf\u968f\u673a\u8bfb\u53d6\u573a\u666f\u8981\u7a0d\u5dee\u4e00\u70b9\uff0c\u4f46\u4e5f\u53ea\u9650\u4e8e\u9996\u6b21\u8bbf\u95ee\uff0c\u540e\u7eed\u8bbf\u95ee\u6027\u80fd\u6ca1\u6709\u5dee\u8ddd\u3002<\/li>\n\n\n\n<li>\u5bf9\u4e8e\u8ffd\u52a0\u6570\u636e\u573a\u666f\uff0c4.0 \u56e0\u4e3a\u589e\u52a0\u94fe\u8868\u5143\u7d20\u5206\u914d\u4e00\u6b21\u5185\u5b58\uff0c\u76f8\u6bd4\u6570\u7ec4\u65b9\u5f0f\u53ef\u80fd\u8981\u8c03\u6574\u6570\u636e\u5927\u5c0f\uff0c\u7406\u8bba\u4e0a\u8981\u66f4\u5feb\u4e00\u4e9b<\/li>\n\n\n\n<li>\u5bf9\u4e8e\u89e3\u6790\u573a\u666f\uff0c4.0 \u56e0\u4e3a\u65b0\u7684\u67b6\u6784\u548c\u89e3\u6790\u7b97\u6cd5\uff0c\u7406\u8bba\u6027\u80fd\u6bd4 3.0 \u6709\u4e86\u8f83\u5927\u7684\u63d0\u5347<\/li>\n\n\n\n<li>\u5bf9\u4e8e\u5e8f\u5217\u5316\u573a\u666f\uff0c4.0 \u5b9e\u73b0\u4e86\u65b0\u7684\u5de5\u4f5c\u6d41\u7a0b\uff0c\u51cf\u5c11\u4e86\u5185\u5b58\u7684\u91cd\u590d\u5206\u914d\u548c\u91ca\u653e\uff0c\u5728\u6027\u80fd\u4e0a\u4e5f\u6709\u4e86\u5f88\u5927\u7684\u63d0\u5347\u3002\u4e0e 3.0 \u76f8\u6bd4\uff0c\u4e5f\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u5e8f\u5217\u5316\u65b9\u5f0f\uff1a\n<ul class=\"wp-block-list\">\n<li>\u4f7f\u7528 TQSerializer \u8fdb\u884c\u57fa\u4e8e RTTI \u7684\u5e8f\u5217\u5316\u548c\u53cd\u5e8f\u5217\u5316\uff08\u63a8\u8350\uff0c\u63a5\u53e3\u7edf\u4e00\uff0c\u66f4\u6613\u62d3\u5c55\uff09<\/li>\n\n\n\n<li>\u57fa\u4e8e TQJsonEncoder\/TQJsonParser \u6765\u6267\u884c\u5e8f\u5217\u5316\u6216\u53cd\u5e8f\u5217\u5316\uff08\u5185\u5b58\u5360\u7528\u66f4\u5c0f<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u5b66\u4e60\u96be\u5ea6<\/strong>\n<ul class=\"wp-block-list\">\n<li>4.0 \u7edf\u4e00\u4e86 JSON\/XML\/MessagePack \u7b49\u683c\u5f0f\u5e8f\u5217\u5316\u63a5\u53e3\uff0c\u63d0\u4f9b\u4e86 TQSerializer \u6765\u7edf\u4e00\u683c\u5f0f\u7684\u5e8f\u5217\u5316\u548c\u53cd\u5e8f\u5217\u5316\uff0c\u65b9\u4fbf\u7528\u6237\u5c06\u6765\u80fd\u591f\u5feb\u901f\u7684\u652f\u6301\u591a\u79cd\u683c\u5f0f\u8f93\u51fa\u3002<\/li>\n\n\n\n<li>4.0 \u516c\u5f00\u63a5\u53e3\u548c 3.0 \u57fa\u672c\u4fdd\u6301\u4e00\u81f4\uff0c\u8fc1\u79fb\u6210\u672c\u4e0d\u9ad8\u3002\u4f46\u56e0\u4e3a 4.0 \u4ece\u7c7b\u8f6c\u4e3a\u8bb0\u5f55\u7c7b\u578b\uff0c\u6240\u4ee5\u76f8\u5bf9\u6765\u8bf4 \uff0c\u8fd8\u662f\u8981\u7528\u6237\u4e0d\u53ef\u907f\u514d\u7684\u5728\u4ee3\u7801\u5c42\u7ea7\u505a\u4e00\u4e9b\u53d8\u52a8\uff0c\u4f46\u5b66\u4e60\u96be\u5ea6\u51e0\u4e4e\u6ca1\u6709\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u5176\u5b83\u53d8\u5316<\/strong>\n<ul class=\"wp-block-list\">\n<li>4.0 \u5b8c\u6574\u652f\u6301\u6ce8\u91ca\u7c7b\u578b\uff08jdtLineComment \/ jdtBlockComment)\uff0c\u800c 3.0 \u65e0\u8bba\u89e3\u7801\u8fd8\u662f\u7f16\u7801\uff0c\u90fd\u4f1a\u5ffd\u7565\u6ce8\u91ca<\/li>\n\n\n\n<li>4.0 \u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u56de\u8c03\u6765\u63a7\u5236\u89e3\u6790\u6d41\u7a0b\uff0c\u8df3\u8fc7\u4e0d\u9700\u8981\u89e3\u6790\u7684\u7ed3\u70b9\uff0c\u4ece\u800c\u63d0\u5347\u6548\u7387<\/li>\n\n\n\n<li>4.0 \u7f16\u7801\u8bbe\u7f6e\u589e\u52a0\u4e86\u989d\u5916\u7684\u9009\u9879\u6765\u66f4\u7075\u6d3b\u7684\u63a7\u5236\u8f93\u51fa JSON \u7684\u65b9\u5f0f\uff0c\u6bd4\u5982\u65e5\u671f\u65f6\u95f4\u7c7b\u578b\u8f93\u51fa\u4e3a Unix \u65f6\u95f4\u6233\u3002<\/li>\n\n\n\n<li>\u66f4\u591a\u53d8\u52a8\uff0c\u8bf7\u9605\u8bfb\u6e90\u7801\u4e86\u89e3\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>QJSON 4.0 \u76ee\u5f55\u5df2\u7ecf\u5904\u4e8e\u57fa\u672c\u53ef\u7528 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[69,8,9,7],"tags":[57],"class_list":["post-5957","post","type-post","status-publish","format-standard","hentry","category-c-builder","category-delphi","category-qdac","category-qjson","tag-57"],"views":1602,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/5957","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5957"}],"version-history":[{"count":1,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/5957\/revisions"}],"predecessor-version":[{"id":5958,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/5957\/revisions\/5958"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5957"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5957"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5957"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}