{"id":311234,"date":"2024-05-20T22:10:11","date_gmt":"2024-05-20T14:10:11","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/311234.html"},"modified":"2024-05-20T22:10:25","modified_gmt":"2024-05-20T14:10:25","slug":"table-%e6%95%b0%e6%8d%ae%e6%80%8e%e4%b9%88%e8%bd%ac%e4%b8%ba-json-%e6%a0%bc%e5%bc%8f%e6%95%b0%e6%8d%ae","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/311234.html","title":{"rendered":"table \u6570\u636e\u600e\u4e48\u8f6c\u4e3a Json \u683c\u5f0f\u6570\u636e"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/26231923\/6f6f95b4-8dcb-44c9-ac7e-3627f1774d26.webp\" alt=\"table \u6570\u636e\u600e\u4e48\u8f6c\u4e3a Json \u683c\u5f0f\u6570\u636e\" \/><\/p>\n<p><p>JSON\uff08JavaScript Object Notation\uff09\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u6570\u636e\u4ea4\u6362\u683c\u5f0f\uff0c\u5b83\u662f\u57fa\u4e8e\u6587\u672c\u7684\u3001\u53ef\u8bfb\u6027\u9ad8\u5e76\u4e14\u6613\u4e8e\u673a\u5668\u5904\u7406\u3002\u5c06\u8868\u683c\uff08table\uff09\u6570\u636e\u8f6c\u6362\u4e3aJSON\u683c\u5f0f\u6570\u636e\u4e00\u822c\u9700\u8981\u6267\u884c\u4ee5\u4e0b\u6b65\u9aa4\uff1a<strong>\u786e\u5b9a\u6570\u636e\u7ed3\u6784\u3001\u8fed\u4ee3\u8868\u683c\u884c\u3001\u5904\u7406\u8868\u683c\u5355\u5143\u683c\u6570\u636e\u3001\u6784\u5efaJSON\u5bf9\u8c61<\/strong>\uff0c\u5e76\u6700\u7ec8\u751f\u6210\u76f8\u5e94\u7684JSON\u5b57\u7b26\u4e32\u3002\u4ee5\u4e00\u4e2a\u5177\u4f53\u5b9e\u4f8b\u6765\u8bf4\uff0c\u5982\u679c\u6211\u4eec\u6709\u4e00\u4e2a\u4eba\u5458\u4fe1\u606f\u8868\uff0c\u5305\u542b\u59d3\u540d\u548c\u5e74\u9f84\u4e24\u5217\uff0c\u5728\u8f6c\u6362\u65f6\u6211\u4eec\u9700\u8981\u904d\u5386\u6bcf\u4e00\u884c\uff0c\u63d0\u53d6\u5404\u4e2a\u5355\u5143\u683c\u4e2d\u7684\u6570\u636e\uff0c\u5e76\u6784\u5efa\u6210JSON\u5bf9\u8c61\u7684\u6570\u7ec4\u5f62\u5f0f\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u786e\u5b9a\u6570\u636e\u7ed3\u6784<\/h3>\n<\/p>\n<p><p>\u5728\u5c06table\u6570\u636e\u8f6c\u6362\u4e3aJSON\u683c\u5f0f\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u51b3\u5b9a\u6700\u7ec8JSON\u7684\u7ed3\u6784\u3002\u8fd9\u901a\u5e38\u4f9d\u8d56\u4e8e\u539f\u59cb\u6570\u636e\u7684\u7ec4\u7ec7\u65b9\u5f0f\u548c\u76ee\u6807\u6570\u636e\u7684\u7528\u9014\u3002\u5e38\u89c1\u7684\u7ed3\u6784\u5305\u62ec\u5bf9\u8c61\u6570\u7ec4\uff0c\u5176\u4e2d\u6bcf\u4e2a\u5bf9\u8c61\u4ee3\u8868\u8868\u683c\u4e2d\u7684\u4e00\u884c\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u8fed\u4ee3\u8868\u683c\u884c<\/h3>\n<\/p>\n<p><p>\u8fed\u4ee3\uff08\u904d\u5386\uff09\u8868\u683c\u6bcf\u4e00\u884c\u662f\u8f6c\u6362\u8fc7\u7a0b\u4e2d\u7684\u5173\u952e\u4e00\u6b65\u3002\u5728\u7f16\u7a0b\u4e2d\uff0c\u901a\u5e38\u4f1a\u4f7f\u7528\u5faa\u73af\u7ed3\u6784\u6765\u5b9e\u73b0\u5bf9\u6bcf\u4e00\u884c\u7684\u8bbf\u95ee\uff0c\u4ee5\u786e\u4fdd\u6bcf\u4e00\u884c\u7684\u6570\u636e\u90fd\u88ab\u5904\u7406\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u5904\u7406\u8868\u683c\u5355\u5143\u683c\u6570\u636e<\/h3>\n<\/p>\n<p><p>\u6bcf\u8fed\u4ee3\u5230\u4e00\u884c\uff0c\u63a5\u7740\u9700\u8981\u8fed\u4ee3\u8be5\u884c\u4e2d\u7684\u5355\u5143\u683c\u3002\u5bf9\u4e8e\u6bcf\u4e2a\u5355\u5143\u683c\u7684\u6570\u636e\uff0c\u9700\u8981\u6839\u636e\u6700\u7ec8JSON\u6570\u636e\u7684\u8981\u6c42\u8fdb\u884c\u5904\u7406\u3002\u8fd9\u53ef\u80fd\u5305\u62ec\u6570\u636e\u7c7b\u578b\u8f6c\u6362\u3001\u6570\u636e\u6e05\u6d17\u7b49\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u6784\u5efaJSON\u5bf9\u8c61<\/h3>\n<\/p>\n<p><p>\u5728\u904d\u5386\u8868\u683c\u7684\u884c\u548c\u5355\u5143\u683c\u4e4b\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u4e3a\u6bcf\u884c\u6784\u9020\u4e00\u4e2aJSON\u5bf9\u8c61\u3002\u5bf9\u8c61\u7684\u952e\u901a\u5e38\u5bf9\u5e94\u8868\u683c\u7684\u5217\u6807\u9898\uff0c\u503c\u5219\u4e3a\u5355\u5143\u683c\u4e2d\u7684\u6570\u636e\u3002\u6240\u6709\u8fd9\u4e9b\u5bf9\u8c61\u901a\u5e38\u4f1a\u88ab\u6536\u96c6\u5230\u4e00\u4e2a\u6570\u7ec4\u4e2d\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u751f\u6210JSON\u5b57\u7b26\u4e32<\/h3>\n<\/p>\n<p><p>\u6700\u540e\uff0c\u4e00\u65e6\u5f97\u5230\u4e86\u6574\u7406\u597d\u7684JSON\u5bf9\u8c61\u6570\u7ec4\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528JSON\u5e8f\u5217\u5316\u65b9\u6cd5\u5c06\u5b83\u8f6c\u6362\u4e3aJSON\u5b57\u7b26\u4e32\u3002\u5728\u4e0d\u540c\u7684\u7f16\u7a0b\u8bed\u8a00\u4e2d\uff0c\u8fd9\u4e00\u6b65\u901a\u5e38\u7531\u5185\u7f6e\u7684JSON\u5e93\u5b8c\u6210\u3002<\/p>\n<\/p>\n<p><p>\u73b0\u5728\uff0c\u8ba9\u6211\u4eec\u8be6\u7ec6\u63cf\u8ff0\u8fd9\u4e00\u8fc7\u7a0b\u7684\u6bcf\u4e2a\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u786e\u5b9a\u6570\u636e\u7ed3\u6784<\/h2>\n<\/p>\n<p><p>\u5728\u8f6c\u6362\u6570\u636e\u4e4b\u524d\uff0c\u51b3\u5b9aJSON\u7684\u6700\u7ec8\u7ed3\u679c\u5f62\u5f0f\u662f\u5173\u952e\u3002\u4ee5\u4e00\u4e2a\u7b80\u5355\u7684HTML\u8868\u683c\u4e3a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-html\">&lt;table id=&quot;example-table&quot;&gt;<\/p>\n<p>  &lt;thead&gt;<\/p>\n<p>    &lt;tr&gt;<\/p>\n<p>      &lt;th&gt;Name&lt;\/th&gt;<\/p>\n<p>      &lt;th&gt;Age&lt;\/th&gt;<\/p>\n<p>    &lt;\/tr&gt;<\/p>\n<p>  &lt;\/thead&gt;<\/p>\n<p>  &lt;tbody&gt;<\/p>\n<p>    &lt;tr&gt;<\/p>\n<p>      &lt;td&gt;John Doe&lt;\/td&gt;<\/p>\n<p>      &lt;td&gt;30&lt;\/td&gt;<\/p>\n<p>    &lt;\/tr&gt;<\/p>\n<p>    &lt;tr&gt;<\/p>\n<p>      &lt;td&gt;Jane Smith&lt;\/td&gt;<\/p>\n<p>      &lt;td&gt;25&lt;\/td&gt;<\/p>\n<p>    &lt;\/tr&gt;<\/p>\n<p>  &lt;\/tbody&gt;<\/p>\n<p>&lt;\/table&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6211\u4eec\u671f\u671b\u7684JSON\u7ed3\u6784\u53ef\u80fd\u4f1a\u662f\u4e00\u4e2a\u6570\u7ec4\uff0c\u6bcf\u4e2a\u5143\u7d20\u662f\u4e00\u4e2a\u5bf9\u8c61\uff0c\u4ee3\u8868\u8868\u683c\u7684\u4e00\u884c\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-json\">[<\/p>\n<p>  { &quot;Name&quot;: &quot;John Doe&quot;, &quot;Age&quot;: 30 },<\/p>\n<p>  { &quot;Name&quot;: &quot;Jane Smith&quot;, &quot;Age&quot;: 25 }<\/p>\n<p>]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u786e\u5b9a\u4e86\u7ed3\u6784<\/strong>\u540e\uff0c\u4fbf\u53ef\u4ee5\u5f00\u59cb\u8f6c\u6362\u8fc7\u7a0b\u3002<\/p>\n<\/p>\n<p><h2>\u4e8c\u3001\u8fed\u4ee3\u8868\u683c\u884c<\/h2>\n<\/p>\n<p><p>\u5bfc\u51faJSON\u6570\u636e\u7684\u7b2c\u4e00\u6b65\u662f\u8fed\u4ee3\u8868\u683c\u4e2d\u7684\u6bcf\u4e00\u884c\u3002\u5728web\u7f16\u7a0b\u4e2d\uff0c\u4f7f\u7528JavaScript\u548cDOM\u64cd\u4f5c\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u5b9e\u73b0\u8fd9\u4e00\u6b65\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-javascript\">let table = document.getElementById(&#039;example-table&#039;);<\/p>\n<p>let rows = table.getElementsByTagName(&#039;tr&#039;);<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u904d\u5386\u5f97\u5230\u7684\u884c\uff0c\u901a\u5e38\u4ece\u7b2c\u4e8c\u884c\u5f00\u59cb\uff08\u56e0\u4e3a\u7b2c\u4e00\u884c\u901a\u5e38\u662f\u8868\u5934\uff09\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-javascript\">for(let i = 1; i &lt; rows.length; i++) {<\/p>\n<p>  \/\/ \u8fd9\u91cc\u5c06\u9488\u5bf9\u6bcf\u4e00\u884c\u5904\u7406\u5176\u5355\u5143\u683c\u6570\u636e<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u5faa\u73af\u4e2d\uff0c\u6bcf\u4e2a\u884c\u4ee3\u8868\u4e86\u4e00\u4e2a\u5373\u5c06\u88ab\u6784\u5efa\u7684JSON\u5bf9\u8c61\u3002<\/p>\n<\/p>\n<p><h2>\u4e09\u3001\u5904\u7406\u8868\u683c\u5355\u5143\u683c\u6570\u636e<\/h2>\n<\/p>\n<p><p>\u5728\u8fed\u4ee3\u8fc7\u7a0b\u4e2d\uff0c\u9700\u8981\u83b7\u53d6\u6bcf\u4e00\u884c\u7684\u5355\u5143\u683c\u6570\u636e\u3002\u6839\u636e\u5217\u7684\u7c7b\u578b\uff0c\u53ef\u80fd\u9700\u8981\u6267\u884c\u4e00\u4e9b\u7c7b\u578b\u8f6c\u6362\uff0c\u4f8b\u5982\u5c06\u6570\u5b57\u8868\u793a\u7684\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u6570\u6216\u6d6e\u70b9\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-javascript\">for(let i = 1; i &lt; rows.length; i++) {<\/p>\n<p>  let cells = rows[i].getElementsByTagName(&#039;td&#039;);<\/p>\n<p>  let rowData = {<\/p>\n<p>    &quot;Name&quot;: cells[0].textContent,<\/p>\n<p>    &quot;Age&quot;: parseInt(cells[1].textContent, 10) \/\/ \u8f6c\u4e3a\u6574\u6570<\/p>\n<p>  };<\/p>\n<p>  \/\/ rowData\u73b0\u5728\u5305\u542b\u4e86\u4e00\u884c\u7684\u6570\u636e\uff0c\u53ef\u4ee5\u52a0\u5165\u5230\u6700\u7ec8\u7684JSON\u6570\u7ec4\u4e2d<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u5904\u7406\u6570\u636e\u65f6\uff0c<strong>\u6ce8\u610f\u7c7b\u578b\u8f6c\u6362\u548c\u6570\u636e\u6e05\u6d17<\/strong>\u662f\u81f3\u5173\u91cd\u8981\u7684\uff0c\u4ee5\u786e\u4fdd\u751f\u6210\u7684JSON\u6570\u636e\u662f\u6b63\u786e\u548c\u5e72\u51c0\u7684\u3002<\/p>\n<\/p>\n<p><h2>\u56db\u3001\u6784\u5efaJSON\u5bf9\u8c61<\/h2>\n<\/p>\n<p><p>\u7ee7\u7eed\u4e0a\u9762\u7684\u4ee3\u7801\uff0c\u6bcf\u5f53\u6211\u4eec\u4ece\u4e00\u884c\u4e2d\u63d0\u53d6\u51fa\u6570\u636e\u540e\uff0c\u5c31\u53ef\u4ee5\u6784\u5efa\u4e00\u4e2a\u4ee3\u8868\u8be5\u884c\u7684JSON\u5bf9\u8c61\uff0c\u5e76\u5c06\u5176\u6dfb\u52a0\u5230\u4e00\u4e2a\u6570\u7ec4\u4e2d\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-javascript\">let jsonResult = [];<\/p>\n<p>for(let i = 1; i &lt; rows.length; i++) {<\/p>\n<p>  \/\/ ...<\/p>\n<p>  jsonResult.push(rowData);<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u6570\u7ec4\u4e2d\u6536\u96c6\u5bf9\u8c61\uff0c\u6709\u52a9\u4e8e<strong>\u4fdd\u6301\u6700\u7ec8\u6570\u636e\u7684\u7ec4\u7ec7\u6027\u548c\u53ef\u8bfb\u6027\u3002<\/strong><\/p>\n<\/p>\n<p><h2>\u4e94\u3001\u751f\u6210JSON\u5b57\u7b26\u4e32<\/h2>\n<\/p>\n<p><p>\u6700\u540e\uff0c\u4f7f\u7528JSON.stringify\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u5c06\u6570\u7ec4\u8f6c\u6362\u4e3aJSON\u5b57\u7b26\u4e32\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-javascript\">let jsonString = JSON.stringify(jsonResult);<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u751f\u6210\u4e86\u4e00\u4e2a\u53ef\u4ee5\u7528\u4e8e\u6570\u636e\u4ea4\u6362\u3001\u5b58\u50a8\u6216\u5176\u4ed6\u76ee\u7684\u7684JSON\u5b57\u7b26\u4e32\u3002<strong>\u5c06\u5bf9\u8c61\u6570\u7ec4\u5e8f\u5217\u5316\u4e3a\u5b57\u7b26\u4e32\uff0c\u6807\u5fd7\u7740\u6570\u636e\u8f6c\u6362\u7684\u5b8c\u6210\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u7efc\u5408\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u4f60\u5c06\u80fd\u591f\u5c06\u8868\u683c\u6570\u636e\u9ad8\u6548\u5730\u8f6c\u6362\u4e3aJSON\u683c\u5f0f\u6570\u636e\u3002\u8fd9\u4e00\u6280\u80fd\u5728\u8fdb\u884c\u524d\u7aef\u5f00\u53d1\u3001\u6570\u636e\u5206\u6790\u6216\u7cfb\u7edf\u96c6\u6210\u65f6\u5c24\u4e3a\u91cd\u8981\uff0c\u56e0\u4e3aJSON\u5df2\u7ecf\u6210\u4e3a\u73b0\u4ee3Web\u5e94\u7528\u7a0b\u5e8f\u4e2d\u6570\u636e\u4ea4\u6362\u7684\u4e8b\u5b9e\u6807\u51c6\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>Q: \u5982\u4f55\u5c06\u8868\u683c\u6570\u636e\u8f6c\u6362\u4e3aJSON\u683c\u5f0f\u6570\u636e\uff1f<\/strong><\/p>\n<p>A: \u8868\u683c\u6570\u636e\u8f6c\u6362\u4e3aJSON\u683c\u5f0f\u6570\u636e\u7684\u65b9\u6cd5\u6709\u5f88\u591a\u79cd\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u7f16\u7a0b\u8bed\u8a00\u5982Python\u6216JavaScript\u4e2d\u7684\u76f8\u5173\u5e93\u548c\u51fd\u6570\uff0c\u4ece\u8868\u683c\u4e2d\u8bfb\u53d6\u6570\u636e\u5e76\u5c06\u5176\u8f6c\u6362\u4e3aJSON\u683c\u5f0f\u3002<\/p>\n<p>\u4e00\u79cd\u5e38\u89c4\u7684\u65b9\u6cd5\u662f\uff0c\u9996\u5148\u4f7f\u7528\u8bed\u8a00\u7279\u5b9a\u7684\u5e93\uff08\u5982Python\u4e2d\u7684pandas\u5e93\uff09\u8bfb\u53d6\u8868\u683c\u6570\u636e\uff0c\u5e76\u5c06\u5176\u5b58\u50a8\u4e3a\u4e00\u4e2a\u5305\u542b\u8868\u683c\u6570\u636e\u7684\u6570\u636e\u7ed3\u6784\uff08\u5982DataFrame\uff09\uff0c\u7136\u540e\u4f7f\u7528\u8be5\u5e93\u63d0\u4f9b\u7684\u65b9\u6cd5\uff0c\u5c06\u6570\u636e\u8f6c\u6362\u4e3aJSON\u683c\u5f0f\u3002\u4f8b\u5982\uff0cpandas\u5e93\u4e2d\u63d0\u4f9b\u4e86&quot;to_json()&quot;\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5c06DataFrame\u8f6c\u6362\u4e3aJSON\u683c\u5f0f\u5b57\u7b26\u4e32\u3002<\/p>\n<p>\u53e6\u4e00\u79cd\u65b9\u6cd5\u662f\u624b\u52a8\u904d\u5386\u8868\u683c\u4e2d\u7684\u6bcf\u4e00\u884c\u548c\u5217\uff0c\u5e76\u4f7f\u7528\u5185\u7f6e\u7684JSON\u5e93\u6216\u76f8\u5173\u51fd\u6570\uff0c\u5c06\u6570\u636e\u8f6c\u6362\u4e3aJSON\u683c\u5f0f\u3002\u4f60\u9700\u8981\u4f7f\u7528\u5faa\u73af\u7ed3\u6784\u904d\u5386\u8868\u683c\uff0c\u7136\u540e\u4f7f\u7528\u952e\u503c\u5bf9\u7684\u5f62\u5f0f\u5c06\u6bcf\u4e2a\u5355\u5143\u683c\u7684\u6570\u636e\u5b58\u50a8\u4e3aJSON\u5bf9\u8c61\u3002<\/p>\n<p>\u65e0\u8bba\u4f7f\u7528\u54ea\u79cd\u65b9\u6cd5\uff0c\u6700\u7ec8\u90fd\u4f1a\u5f97\u5230\u4e00\u4e2a\u7b26\u5408JSON\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\u6216\u5bf9\u8c61\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u6216\u4fdd\u5b58\u4e3a\u72ec\u7acb\u7684JSON\u6587\u4ef6\u3002<\/p>\n<p><strong>Q: \u6709\u6ca1\u6709\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u5c06\u8868\u683c\u6570\u636e\u8f6c\u6362\u4e3aJSON\u683c\u5f0f\uff1f<\/strong><\/p>\n<p>A: \u662f\u7684\uff0c\u6709\u5f88\u591a\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5c06\u8868\u683c\u6570\u636e\u8f6c\u6362\u4e3aJSON\u683c\u5f0f\u7684\u5de5\u5177\u3002\u8fd9\u4e9b\u5de5\u5177\u901a\u5e38\u662f\u4ee5\u5728\u7ebf\u670d\u52a1\u6216\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u7684\u5f62\u5f0f\u63d0\u4f9b\u7684\u3002<\/p>\n<p>\u5728\u7ebf\u670d\u52a1\u65b9\u9762\uff0c\u4e00\u4e9b\u6d41\u884c\u7684\u8868\u683c\u8f6c\u6362\u5de5\u5177\u5982ConvertCSV.com\u548cCSVJSON Converter\u7b49\uff0c\u53ef\u4ee5\u76f4\u63a5\u5c06\u4e0a\u4f20\u7684CSV\u6216Excel\u6587\u4ef6\u8f6c\u6362\u4e3aJSON\u683c\u5f0f\u3002<\/p>\n<p>\u800c\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u65b9\u9762\uff0c\u4e00\u4e9b\u5e38\u89c1\u7684\u7535\u5b50\u8868\u683c\u8f6f\u4ef6\u5982Microsoft Excel\u548cGoogle Sheets\u4e5f\u63d0\u4f9b\u4e86\u5185\u7f6e\u7684\u529f\u80fd\u6216\u63d2\u4ef6\uff0c\u7528\u4e8e\u5c06\u8868\u683c\u6570\u636e\u8f6c\u6362\u4e3aJSON\u683c\u5f0f\u3002<\/p>\n<p>\u65e0\u8bba\u4f7f\u7528\u5728\u7ebf\u670d\u52a1\u8fd8\u662f\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\uff0c\u5b83\u4eec\u901a\u5e38\u90fd\u63d0\u4f9b\u4e86\u76f4\u89c2\u7684\u754c\u9762\u548c\u7b80\u5355\u6613\u7528\u7684\u64cd\u4f5c\uff0c\u8ba9\u7528\u6237\u80fd\u591f\u5feb\u901f\u65b9\u4fbf\u5730\u5b8c\u6210\u6570\u636e\u8f6c\u6362\u64cd\u4f5c\u3002<\/p>\n<p><strong>Q: \u4e3a\u4ec0\u4e48\u5c06\u8868\u683c\u6570\u636e\u8f6c\u6362\u4e3aJSON\u683c\u5f0f\u6570\u636e\uff1f\u6709\u4ec0\u4e48\u597d\u5904\uff1f<\/strong><\/p>\n<p>A: \u5c06\u8868\u683c\u6570\u636e\u8f6c\u6362\u4e3aJSON\u683c\u5f0f\u6570\u636e\u6709\u51e0\u4e2a\u597d\u5904\uff1a<\/p>\n<ol>\n<li>\n<p>\u53ef\u4ee5\u65b9\u4fbf\u5730\u5c06\u6570\u636e\u7528\u4e8eWeb\u5f00\u53d1\uff1aJSON\u662f\u4e00\u79cd\u975e\u5e38\u5e38\u89c1\u7684\u6570\u636e\u4ea4\u6362\u683c\u5f0f\uff0c\u5c24\u5176\u5728Web\u5f00\u53d1\u4e2d\u5f97\u5230\u5e7f\u6cdb\u5e94\u7528\u3002\u901a\u8fc7\u5c06\u8868\u683c\u6570\u636e\u8f6c\u6362\u4e3aJSON\u683c\u5f0f\uff0c\u4f60\u53ef\u4ee5\u66f4\u5bb9\u6613\u5730\u5c06\u6570\u636e\u96c6\u6210\u5230\u7f51\u9875\u6216\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u65b9\u4fbf\u6570\u636e\u7684\u5c55\u793a\u548c\u5904\u7406\u3002<\/p>\n<\/li>\n<li>\n<p>\u6570\u636e\u7ed3\u6784\u66f4\u7075\u6d3b\uff1a\u76f8\u6bd4\u4e8e\u4f20\u7edf\u7684\u8868\u683c\u683c\u5f0f\uff0cJSON\u63d0\u4f9b\u4e86\u66f4\u7075\u6d3b\u7684\u6570\u636e\u7ed3\u6784\uff0c\u53ef\u4ee5\u66f4\u597d\u5730\u8868\u793a\u590d\u6742\u7684\u5d4c\u5957\u5173\u7cfb\u548c\u5c42\u6b21\u7ed3\u6784\u3002\u8fd9\u4f7f\u5f97JSON\u683c\u5f0f\u66f4\u9002\u5408\u5b58\u50a8\u548c\u4f20\u8f93\u975e\u7ed3\u6784\u5316\u7684\u6570\u636e\uff0c\u4f8b\u5982\u5305\u542bJSON\u5bf9\u8c61\u548c\u6570\u7ec4\u7684\u5d4c\u5957\u6570\u636e\u3002<\/p>\n<\/li>\n<li>\n<p>\u4e0e\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\u517c\u5bb9\uff1aJSON\u51e0\u4e4e\u88ab\u6240\u6709\u4e3b\u6d41\u7f16\u7a0b\u8bed\u8a00\u6240\u652f\u6301\uff0c\u5305\u62ecPython\u3001JavaScript\u3001Java\u7b49\u3002\u901a\u8fc7\u5c06\u8868\u683c\u6570\u636e\u8f6c\u6362\u4e3aJSON\u683c\u5f0f\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u5728\u4e0d\u540c\u7684\u7f16\u7a0b\u73af\u5883\u4e2d\u4f7f\u7528\u548c\u5904\u7406\u6570\u636e\u3002<\/p>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"JSON\uff08JavaScript Object Notation\uff09\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u6570\u636e\u4ea4\u6362\u683c\u5f0f\uff0c\u5b83\u662f\u57fa\u4e8e\u6587\u672c\u7684\u3001\u53ef [&hellip;]","protected":false},"author":3,"featured_media":311248,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/311234"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=311234"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/311234\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/311248"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=311234"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=311234"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=311234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}