{"id":401442,"date":"2024-02-20T15:10:02","date_gmt":"2024-02-20T07:10:02","guid":{"rendered":"https:\/\/www.idc.net\/help\/401442\/"},"modified":"2024-02-20T15:10:02","modified_gmt":"2024-02-20T07:10:02","slug":"%e4%bd%bf%e7%94%a8json%e6%95%b0%e5%80%bc%e7%bb%93%e6%9e%84%e8%af%b4%e6%98%8e%e4%bb%8b%e7%bb%8d%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/401442\/","title":{"rendered":"\u4f7f\u7528JSON\u6570\u503c\u7ed3\u6784\u8bf4\u660e\u4ecb\u7ecd\u4f7f\u7528"},"content":{"rendered":"<p><font>JSON\u6570\u503c<\/font>\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u6570\u636e\u4ea4\u6362\u683c\u5f0f\u3002\u6613\u4e8e\u4eba\u9605\u8bfb\u548c\u7f16\u5199\u3002\u540c\u65f6\u4e5f\u6613\u4e8e\u673a\u5668\u89e3\u6790\u548c\u751f\u6210\u3002\u5b83\u57fa\u4e8eJavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999\u7684\u4e00\u4e2a\u5b50\u96c6\u3002 <\/p>\n<p><font>JSON<\/font>\u91c7\u7528\u5b8c\u5168\u72ec\u7acb\u4e8e\u8bed\u8a00\u7684\u6587\u672c\u683c\u5f0f\uff0c\u4f46\u662f\u4e5f\u4f7f\u7528\u4e86\u7c7b\u4f3c\u4e8eC\u8bed\u8a00\u5bb6\u65cf\u7684\u4e60\u60ef\uff08\u5305\u62ecC, C++, C#, Java, JavaScript, Perl, Python\u7b49\uff09\u3002\u8fd9\u4e9b\u7279\u6027\u4f7f<font>JSON<\/font>\u6210\u4e3a\u7406\u60f3\u7684\u6570\u636e\u4ea4\u6362\u8bed\u8a00\u3002<\/p>\n<p><strong><font>JSON\u6570\u503c<\/font>\u5efa\u6784\u4e8e\u4e24\u79cd\u7ed3\u6784\uff1a<\/strong><\/p>\n<p>\u201c\u540d\u79f0\/\u503c\u201d\u5bf9\u7684\u96c6\u5408\uff08A collection of name\/value pairs\uff09\u3002\u4e0d\u540c\u7684\u8bed\u8a00\u4e2d\uff0c\u5b83\u88ab\u7406\u89e3\u4e3a\u5bf9\u8c61\uff08object\uff09\uff0c\u7eaa\u5f55\uff08record\uff09\uff0c\u7ed3\u6784\uff08struct\uff09\uff0c\u5b57\u5178\uff08dictionary\uff09\uff0c\u54c8\u5e0c\u8868\uff08hash table\uff09\uff0c\u6709\u952e\u5217\u8868\uff08keyed list\uff09\uff0c\u6216\u8005\u5173\u8054\u6570\u7ec4 \uff08associative array\uff09\u3002 #t#<\/p>\n<p>\u503c\u7684\u6709\u5e8f\u5217\u8868\uff08An ordered list of values\uff09\u3002\u5728\u5927\u90e8\u5206\u8bed\u8a00\u4e2d\uff0c\u5b83\u88ab\u7406\u89e3\u4e3a\u6570\u7ec4\uff08array\uff09,\u8fd9\u4e9b\u90fd\u662f\u5e38\u89c1\u7684\u6570\u636e\u7ed3\u6784\u3002\u4e8b\u5b9e\u4e0a\u5927\u90e8\u5206\u73b0\u4ee3\u8ba1\u7b97\u673a\u8bed\u8a00\u90fd\u4ee5\u67d0\u79cd\u5f62\u5f0f\u652f\u6301\u5b83\u4eec\u3002\u8fd9\u4f7f\u5f97\u4e00\u79cd\u6570\u636e\u683c\u5f0f\u5728\u540c\u6837\u57fa\u4e8e\u8fd9\u4e9b\u7ed3\u6784\u7684\u7f16\u7a0b\u8bed\u8a00\u4e4b\u95f4\u4ea4\u6362\u6210\u4e3a\u53ef\u80fd\u3002<\/p>\n<p><strong><font>JSON\u6570\u503c<\/font>\u5177\u6709\u4ee5\u4e0b\u8fd9\u4e9b\u5f62\u5f0f\uff1a<\/strong><\/p>\n<p>\u5bf9\u8c61\u662f\u4e00\u4e2a\u65e0\u5e8f\u7684\u201c\u2018\u540d\u79f0\/\u503c\u2019\u5bf9\u201d\u96c6\u5408\u3002\u4e00\u4e2a\u5bf9\u8c61\u4ee5\u201c{\u201d\uff08\u5de6\u62ec\u53f7\uff09\u5f00\u59cb\uff0c\u201c}\u201d\uff08\u53f3\u62ec\u53f7\uff09\u7ed3\u675f\u3002\u6bcf\u4e2a\u201c\u540d\u79f0\u201d\u540e\u8ddf\u4e00\u4e2a\u201c:\u201d\uff08\u5192\u53f7\uff09\uff1b\u201c\u2018\u540d\u79f0\/\u503c\u2019 \u5bf9\u201d\u4e4b\u95f4\u4f7f\u7528\u201c,\u201d\uff08\u9017\u53f7\uff09\u5206\u9694\u3002<\/p>\n<p>\u6570\u7ec4\u662f\u503c\uff08value\uff09\u7684\u6709\u5e8f\u96c6\u5408\u3002\u4e00\u4e2a\u6570\u7ec4\u4ee5\u201c[\u201d\uff08\u5de6\u4e2d\u62ec\u53f7\uff09\u5f00\u59cb\uff0c\u201c]\u201d\uff08\u53f3\u4e2d\u62ec\u53f7\uff09\u7ed3\u675f\u3002\u503c\u4e4b\u95f4\u4f7f\u7528\u201c,\u201d\uff08\u9017\u53f7\uff09\u5206\u9694\u3002\u503c\uff08value\uff09\u53ef\u4ee5\u662f\u53cc\u5f15\u53f7\u62ec\u8d77\u6765\u7684\u5b57\u7b26\u4e32\uff08string\uff09\u3001\u6570\u503c(number)\u3001true\u3001false\u3001 null\u3001\u5bf9\u8c61\uff08object\uff09\u6216\u8005\u6570\u7ec4\uff08array\uff09\u3002\u8fd9\u4e9b\u7ed3\u6784\u53ef\u4ee5\u5d4c\u5957\u3002#t#<\/p>\n<p>\u5b57\u7b26\u4e32\uff08string\uff09\u662f\u7531\u53cc\u5f15\u53f7\u5305\u56f4\u7684\u4efb\u610f\u6570\u91cfUnicode\u5b57\u7b26\u7684\u96c6\u5408\uff0c\u4f7f\u7528\u53cd\u659c\u7ebf\u8f6c\u4e49\u3002\u4e00\u4e2a\u5b57\u7b26\uff08character\uff09\u5373\u4e00\u4e2a\u5355\u72ec\u7684\u5b57\u7b26\u4e32\uff08character string\uff09\u3002\u5b57\u7b26\u4e32\uff08string\uff09\u4e0eC\u6216\u8005Java\u7684\u5b57\u7b26\u4e32\u975e\u5e38\u76f8\u4f3c,\u6570\u503c\uff08number\uff09\u4e5f\u4e0eC\u6216\u8005Java\u7684\u6570\u503c\u975e\u5e38\u76f8\u4f3c\u3002\u9664\u53bb\u672a\u66fe\u4f7f\u7528\u7684\u516b\u8fdb\u5236\u4e0e\u5341\u516d\u8fdb\u5236\u683c\u5f0f\u3002\u9664\u53bb\u4e00\u4e9b\u7f16\u7801\u7ec6\u8282\u3002<\/p>\n<p>\u7a7a\u767d\u53ef\u4ee5\u52a0\u5165\u5230\u4efb\u4f55\u7b26\u53f7\u4e4b\u95f4\u3002 <font>JSON\u6570\u503c<\/font>\u4ee5\u4e0b\u63cf\u8ff0\u4e86\u5b8c\u6574\u7684\u8bed\u8a00\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>JSON\u6570\u503c\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u6570\u636e\u4ea4\u6362\u683c\u5f0f\u3002\u6613\u4e8e\u4eba\u9605\u8bfb\u548c\u7f16\u5199\u3002\u540c\u65f6\u4e5f\u6613\u4e8e\u673a\u5668\u89e3\u6790\u548c\u751f\u6210\u3002\u5b83\u57fa\u4e8eJavaScript [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61],"tags":[],"class_list":["post-401442","post","type-post","status-publish","format-standard","hentry","category-website"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/401442","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=401442"}],"version-history":[{"count":0,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/401442\/revisions"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=401442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=401442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=401442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}