{"id":153640,"date":"2024-05-08T11:17:55","date_gmt":"2024-05-08T03:17:55","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/153640.html"},"modified":"2024-05-08T11:18:03","modified_gmt":"2024-05-08T03:18:03","slug":"%e6%80%8e%e4%b9%88%e5%9c%a8-javascript-%e4%b8%ad%e5%88%a4%e6%96%ad-json-%e6%a0%bc%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/153640.html","title":{"rendered":"\u600e\u4e48\u5728 javascript \u4e2d\u5224\u65ad json \u683c\u5f0f"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27151925\/38d97354-21e0-422f-8166-5fd5b51936df.webp\" alt=\"\u600e\u4e48\u5728 javascript \u4e2d\u5224\u65ad json \u683c\u5f0f\" \/><\/p>\n<p><p>JSON\uff08JavaScript Object Notation\uff09\u683c\u5f0f\u662f\u5426\u6709\u6548\uff0c\u662f\u524d\u7aef\u5f00\u53d1\u4e2d\u5e38\u89c1\u7684\u9700\u6c42\u3002<strong>\u5728JavaScript\u4e2d\u5224\u65ad\u4e00\u4e2a\u5b57\u7b26\u4e32\u662f\u5426\u4e3a\u6709\u6548\u7684JSON\u683c\u5f0f\u9700\u8981\u901a\u8fc7\u5c1d\u8bd5\u89e3\u6790\u8be5\u5b57\u7b26\u4e32\u3001\u6355\u83b7\u89e3\u6790\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u51fa\u73b0\u7684\u9519\u8bef<\/strong>\u3002\u82e5\u89e3\u6790\u65e0\u8bef\uff0c\u5219\u8ba4\u4e3a\u8be5\u5b57\u7b26\u4e32\u662f\u6709\u6548\u7684JSON\uff1b\u53cd\u4e4b\uff0c\u89e3\u6790\u65f6\u629b\u51fa\u7684\u9519\u8bef\u8868\u660e\u5b57\u7b26\u4e32\u4e0d\u662f\u6709\u6548\u7684JSON\u683c\u5f0f\u3002\u63a5\u4e0b\u6765\uff0c\u4f1a\u5177\u4f53\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528<code>JSON.parse()<\/code>\u65b9\u6cd5\u6765\u5b8c\u6210\u8fd9\u4e00\u4efb\u52a1\uff0c\u5e76\u89e3\u91ca\u5904\u7406\u9519\u8bef\u7684\u673a\u5236\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528 JSON.parse()<\/h3>\n<\/p>\n<p><p><strong>JavaScript\u63d0\u4f9b\u4e86<code>JSON.parse()<\/code>\u65b9\u6cd5\u6765\u89e3\u6790JSON\u5b57\u7b26\u4e32<\/strong>\uff0c\u5c06\u5176\u8f6c\u6362\u4e3aJavaScript\u5bf9\u8c61\u3002\u5982\u679c\u8f93\u5165\u7684\u5b57\u7b26\u4e32\u4e0d\u7b26\u5408JSON\u89c4\u8303\uff0c\u5219\u8be5\u65b9\u6cd5\u4f1a\u629b\u51fa\u4e00\u4e2a <code>SyntaxError<\/code> \u5f02\u5e38\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-javascript\">function isValidJSON(text) {<\/p>\n<p>    try {<\/p>\n<p>        JSON.parse(text);<\/p>\n<p>        return true;<\/p>\n<p>    } catch (error) {<\/p>\n<p>        return false;<\/p>\n<p>    }<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u5b9a\u4e49\u4e00\u4e2a\u540d\u4e3a <code>isValidJSON<\/code> \u7684\u51fd\u6570\uff0c\u53c2\u6570\u662f\u4e00\u4e2a\u5f85\u9a8c\u8bc1\u7684\u5b57\u7b26\u4e32 <code>text<\/code>\u3002\u5728\u51fd\u6570\u4f53\u5185\uff0c\u4f7f\u7528 <code>try...catch<\/code> \u7ed3\u6784\u3002<code>try<\/code> \u5757\u4e2d\u8c03\u7528 <code>JSON.parse(text)<\/code> \u5c1d\u8bd5\u89e3\u6790\u5b57\u7b26\u4e32\u3002\u5982\u679c\u89e3\u6790\u6210\u529f\uff0c\u5219\u8ba4\u5b9a<code>text<\/code>\u4e3a\u6709\u6548\u7684JSON\u683c\u5f0f\uff0c\u5e76\u8fd4\u56de <code>true<\/code>\u3002\u53cd\u4e4b\uff0c\u5982\u679c\u89e3\u6790\u8fc7\u7a0b\u4e2d\u53d1\u751f\u9519\u8bef\uff0c\u63a7\u5236\u6d41\u4f1a\u8fdb\u5165 <code>catch<\/code> \u5757\uff0c\u5728\u8fd9\u91cc\u8fd4\u56de <code>false<\/code>\uff0c\u8868\u793a\u5b57\u7b26\u4e32\u4e0d\u662f\u6709\u6548\u7684JSON\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u7406\u89e3 JSON \u683c\u5f0f<\/h3>\n<\/p>\n<p><p>JSON\u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u6570\u636e\u4ea4\u6362\u683c\u5f0f\uff0c<strong>\u6613\u4e8e\u9605\u8bfb\u548c\u7f16\u5199\uff0c\u540c\u65f6\u4e5f\u6613\u4e8e\u673a\u5668\u89e3\u6790\u548c\u751f\u6210<\/strong>\u3002\u5b83\u57fa\u4e8eJavaScript\u7684\u4e00\u4e2a\u5b50\u96c6\uff0c\u4f46\u662f\u5176\u683c\u5f0f\u662f\u72ec\u7acb\u4e8e\u4efb\u4f55\u7f16\u7a0b\u8bed\u8a00\u7684\uff0c\u56e0\u6b64\uff0c\u591a\u79cd\u8bed\u8a00\u90fd\u6709\u652f\u6301\u751f\u6210\u548c\u89e3\u6790JSON\u683c\u5f0f\u6570\u636e\u7684\u80fd\u529b\u3002<\/p>\n<\/p>\n<p><h4>\u6709\u6548\u7684 JSON \u7ed3\u6784\u5305\u62ec\uff1a<\/h4>\n<\/p>\n<ul>\n<li>\u5bf9\u8c61\uff1a\u65e0\u5e8f\u7684\u201c\u952e\/\u503c\u5bf9\u201d\u96c6\u5408\uff0c\u683c\u5f0f\u4e3a<code>{&quot;key&quot;: value}<\/code>\u3002<\/li>\n<li>\u6570\u7ec4\uff1a\u6709\u5e8f\u7684\u503c\u96c6\u5408\uff0c\u683c\u5f0f\u4e3a<code>[value1, value2, ...]<\/code>\u3002<\/li>\n<li>\u503c\uff1a\u53ef\u4ee5\u662f\u5b57\u7b26\u4e32\u3001\u6570\u5b57\u3001\u5bf9\u8c61\u3001\u6570\u7ec4\u3001<code>true<\/code>\u3001<code>false<\/code>\u6216\u8005<code>null<\/code>\u3002<\/li>\n<\/ul>\n<p><h4>\u6ce8\u610f\u4e8b\u9879\uff1a<\/h4>\n<\/p>\n<ul>\n<li>\u6240\u6709\u7684 <strong>\u952e\u5fc5\u987b\u662f\u53cc\u5f15\u53f7\u5305\u56f4\u7684\u5b57\u7b26\u4e32<\/strong>\u3002<\/li>\n<li><strong>\u5b57\u7b26\u4e32\u4e5f\u5fc5\u987b\u4f7f\u7528\u53cc\u5f15\u53f7<\/strong>\uff0c\u4e0d\u80fd\u4f7f\u7528\u5355\u5f15\u53f7\u3002<\/li>\n<li>\u4e0d\u652f\u6301\u6ce8\u91ca\u3001\u5c3e\u9017\u53f7\u6216\u672a\u5b9a\u4e49\u7684\u503c\u3002<\/li>\n<\/ul>\n<p><h3>\u4e09\u3001\u5b9e\u9645\u793a\u4f8b\u4e0e\u9519\u8bef\u5904\u7406<\/h3>\n<\/p>\n<p><p>\u5728web\u5e94\u7528\u6216\u8005\u6570\u636e\u4ea4\u6362\u8fc7\u7a0b\u4e2d\u9a8c\u8bc1JSON\u683c\u5f0f\u5408\u6cd5\u6027\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u65e0\u6548\u7684JSON\u53ef\u80fd\u5bfc\u81f4\u7a0b\u5e8f\u5f02\u5e38\u6216\u8005\u8de8\u670d\u52a1\u7684\u6570\u636e\u4ea4\u4e92\u5931\u8d25\u3002<\/p>\n<\/p>\n<p><h4>\u793a\u4f8b\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-javascript\">const jsonStr = &#039;{&quot;name&quot;:&quot;John&quot;, &quot;age&quot;:30, &quot;city&quot;:&quot;New York&quot;}&#039;;<\/p>\n<p>const result = isValidJSON(jsonStr); \/\/ \u8fd4\u56de true<\/p>\n<p>const invalidJSONStr = &#039;{&quot;name&quot;:&quot;John&quot;, age:&quot;30&quot;, &quot;city&quot;:New York}&#039;;<\/p>\n<p>const result2 = isValidJSON(invalidJSONStr); \/\/ \u8fd4\u56de false<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>jsonStr<\/code> \u662f\u4e00\u4e2a\u7b26\u5408JSON\u89c4\u5219\u7684\u5b57\u7b26\u4e32\u3002\u800c <code>invalidJSONStr<\/code> \u7531\u4e8e\u4e0d\u89c4\u8303\uff08\u6bd4\u5982<code>age<\/code>\u7684\u503c\u4e0d\u662f\u6709\u6548\u7684\u5b57\u7b26\u4e32\uff0c<code>New York<\/code> \u6ca1\u6709\u88ab\u53cc\u5f15\u53f7\u5305\u56f4\uff09\uff0c\u5bfc\u81f4 <code>JSON.parse()<\/code> \u89e3\u6790\u5931\u8d25\uff0c\u51fd\u6570\u8fd4\u56de <code>false<\/code>\u3002<\/p>\n<\/p>\n<p><h4>\u9519\u8bef\u5904\u7406\u6280\u5de7\uff1a<\/h4>\n<\/p>\n<p><p>\u5c3d\u7ba1\u4f7f\u7528 <code>try...catch<\/code> \u662f\u5904\u7406 <code>JSON.parse()<\/code> \u629b\u51fa\u9519\u8bef\u7684\u5e38\u89c1\u6a21\u5f0f\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u53ef\u80fd\u8fd8\u9700\u8981\u66f4\u591a\u5173\u4e8e\u9519\u8bef\u8be6\u60c5\u7684\u4fe1\u606f\u3002\u4e3a\u6b64\uff0c\u53ef\u4ee5\u5728 <code>catch<\/code> \u5757\u5185\u8bbf\u95ee <code>error.message<\/code> \u83b7\u53d6\u5177\u4f53\u9519\u8bef\u4fe1\u606f\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u8fdb\u9636\u7528\u6cd5\u4e0e\u6027\u80fd\u8003\u8651<\/h3>\n<\/p>\n<p><p><strong>\u5728\u5b9e\u9645\u5f00\u53d1\u4e2d\uff0c\u9664\u4e86\u7b80\u5355\u7684\u9519\u8bef\u6355\u83b7\uff0c\u8fd8\u8981\u8003\u8651\u4ee3\u7801\u7684\u6027\u80fd<\/strong>\u3002\u5728\u5927\u578b\u5e94\u7528\u4e2d\uff0c\u9891\u7e41\u8c03\u7528 <code>isValidJSON<\/code> \u51fd\u6570\u53ef\u80fd\u5bf9\u6027\u80fd\u4ea7\u751f\u5f71\u54cd\uff0c\u56e0\u6b64\u9700\u8981\u8c28\u614e\u4f7f\u7528\u3002\u5728\u53ef\u80fd\u7684\u60c5\u51b5\u4e0b\uff0c\u901a\u8fc7\u5176\u4ed6\u65b9\u5f0f\u786e\u4fdd\u6570\u636e\u683c\u5f0f\u7684\u6b63\u786e\u6027\uff0c\u4ece\u800c\u51cf\u8f7b\u5bf9 <code>try...catch<\/code> \u7ed3\u6784\u7684\u4f9d\u8d56\u3002<\/p>\n<\/p>\n<p><h4>\u6b63\u786e\u4f7f\u7528JSON.parse():<\/h4>\n<\/p>\n<ul>\n<li>\u4f7f\u7528JSON.parse()\u65f6\uff0c\u5c3d\u91cf\u786e\u4fdd\u8f93\u5165\u7684\u5b57\u7b26\u4e32\u63a5\u8fd1\u9884\u671f\u683c\u5f0f\uff0c\u8fd9\u6709\u52a9\u4e8e\u51cf\u5c11\u4e0d\u5fc5\u8981\u7684\u5f02\u5e38\u5904\u7406\u8fc7\u7a0b\u3002<\/li>\n<li>\u5c3d\u53ef\u80fd\u5728\u6570\u636e\u751f\u6210\u6e90\u5934\u4fdd\u8bc1JSON\u683c\u5f0f\u7684\u6b63\u786e\u6027\uff0c\u800c\u975e\u5728\u5ba2\u6237\u7aef\u9891\u7e41\u8fdb\u884c\u6821\u9a8c\u3002<\/li>\n<\/ul>\n<p><h4>\u6027\u80fd\u4f18\u5316\u6280\u5de7\uff1a<\/h4>\n<\/p>\n<ul>\n<li>\u5bf9\u4e8e\u9ad8\u9891\u64cd\u4f5c\uff0c\u9884\u5148\u8fdb\u884c\u6570\u636e\u683c\u5f0f\u6821\u9a8c\uff0c\u51cf\u5c11\u8fd0\u884c\u65f6\u89e3\u6790\u9519\u8bef\u7684\u53ef\u80fd\u6027\u3002<\/li>\n<li>\u5728\u9519\u8bef\u5904\u7406\u903b\u8f91\u4e2d\uff0c\u53ef\u91c7\u53d6\u9002\u5f53\u7b56\u7565\uff0c\u5982\u8bb0\u5f55\u9519\u8bef\u4fe1\u606f\u3001\u901a\u77e5\u5f00\u53d1\u4eba\u5458\u6216\u8005\u8fdb\u884c\u9519\u8bef\u4e0a\u62a5\uff0c\u800c\u975e\u4ec5\u4ec5\u8fd4\u56de <code>true<\/code> \u6216 <code>false<\/code>\u3002<\/li>\n<li>\u5982\u679c\u9700\u8981\u53cd\u590d\u9a8c\u8bc1\u76f8\u540c\u7ed3\u6784\u7684JSON\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528JSON Schema\u9a8c\u8bc1\u5de5\u5177\u3002<\/li>\n<\/ul>\n<p><p>\u5728\u65e5\u5e38\u7f16\u7801\u5b9e\u8df5\u4e2d\uff0c\u6709\u6548\u5730\u5904\u7406JSON\u6570\u636e\u5c06\u663e\u8457\u63d0\u5347\u5e94\u7528\u7a0b\u5e8f\u7684\u8d28\u91cf\u548c\u7528\u6237\u4f53\u9a8c\u3002\u638c\u63e1\u5728JavaScript\u4e2d\u5224\u65adJSON\u683c\u5f0f\u7684\u6280\u5de7\uff0c\u5e76\u7ed3\u5408\u6b63\u786e\u7684\u6570\u636e\u5904\u7406\u7b56\u7565\u548c\u6027\u80fd\u4f18\u5316\u624b\u6bb5\uff0c\u662f\u6bcf\u4f4d\u524d\u7aef\u5f00\u53d1\u8005\u90fd\u9700\u8981\u5177\u5907\u7684\u80fd\u529b\u3002\u901a\u8fc7\u672c\u6587\u63d0\u4f9b\u7684\u65b9\u6cd5\u548c\u5b9e\u8df5\u5efa\u8bae\uff0c\u4f60\u53ef\u4ee5\u66f4\u52a0\u9ad8\u6548\u5730\u8fdb\u884cJSON\u6570\u636e\u7684\u5904\u7406\u548c\u9a8c\u8bc1\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>\u95ee\u9898\u4e00\uff1a\u5982\u4f55\u5728 JavaScript \u4e2d\u5224\u65ad\u4e00\u4e2a\u53d8\u91cf\u662f\u5426\u662f JSON \u683c\u5f0f\uff1f<\/strong><\/p>\n<p>\u7b54\u6848\uff1a\u5728 JavaScript \u4e2d\u5224\u65ad\u4e00\u4e2a\u53d8\u91cf\u662f\u5426\u662f JSON \u683c\u5f0f\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528 <code>JSON.parse()<\/code> \u65b9\u6cd5\u6765\u5c1d\u8bd5\u89e3\u6790\u8be5\u53d8\u91cf\u3002\u5982\u679c\u89e3\u6790\u6210\u529f\u4e14\u6ca1\u6709\u629b\u51fa\u5f02\u5e38\uff0c\u90a3\u4e48\u8bf4\u660e\u8be5\u53d8\u91cf\u662f\u4e00\u4e2a\u6709\u6548\u7684 JSON \u683c\u5f0f\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-javascript\">function isJSON(str) {\n  try {\n    JSON.parse(str);\n    return true;\n  } catch (e) {\n    return false;\n  }\n}\n\n\/\/ \u4f7f\u7528\u4f8b\u5b50\nconst jsonString = &#039;{&quot;name&quot;: &quot;John&quot;, &quot;age&quot;: 30, &quot;city&quot;: &quot;New York&quot;}&#039;;\nconst jsonObject = {name: &quot;John&quot;, age: 30, city: &quot;New York&quot;};\nconsole.log(isJSON(jsonString));  \/\/ \u8f93\u51fa true\nconsole.log(isJSON(jsonObject));  \/\/ \u8f93\u51fa false\n<\/code><\/pre>\n<p><strong>\u95ee\u9898\u4e8c\uff1a\u5982\u4f55\u5728 JavaScript \u4e2d\u5224\u65ad\u4e00\u4e2a\u53d8\u91cf\u662f\u5426\u7b26\u5408\u7279\u5b9a\u7684 JSON \u683c\u5f0f\uff1f<\/strong><\/p>\n<p>\u7b54\u6848\uff1a\u5982\u679c\u4f60\u9700\u8981\u5224\u65ad\u4e00\u4e2a\u53d8\u91cf\u662f\u5426\u7b26\u5408\u7279\u5b9a\u7684 JSON \u683c\u5f0f\uff0c\u53ef\u4ee5\u5148\u5c06\u5176\u8f6c\u5316\u4e3a\u5b57\u7b26\u4e32\uff0c\u7136\u540e\u518d\u901a\u8fc7 <code>JSON.parse()<\/code> \u65b9\u6cd5\u6765\u89e3\u6790\u5e76\u9a8c\u8bc1\u5176\u7ed3\u6784\u662f\u5426\u7b26\u5408\u8981\u6c42\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-javascript\">function isSpecificJSON(str) {\n  try {\n    const parsedJSON = JSON.parse(str);\n    \/\/ \u5728\u8fd9\u91cc\u8fdb\u884c\u4f60\u7684\u7279\u5b9a JSON \u683c\u5f0f\u7684\u9a8c\u8bc1\n    \/\/ \u8fd4\u56de true \u6216 false\n  } catch (e) {\n    return false;\n  }\n}\n\n\/\/ \u4f7f\u7528\u4f8b\u5b50\nconst jsonString = &#039;{&quot;name&quot;: &quot;John&quot;, &quot;age&quot;: 30, &quot;city&quot;: &quot;New York&quot;}&#039;;\nconsole.log(isSpecificJSON(jsonString));  \/\/ \u8f93\u51fa true\n<\/code><\/pre>\n<p><strong>\u95ee\u9898\u4e09\uff1a\u5982\u4f55\u5728 JavaScript \u4e2d\u5224\u65ad\u4e00\u4e2a\u5bf9\u8c61\u662f\u5426\u53ef\u4ee5\u88ab\u8f6c\u6362\u6210 JSON \u683c\u5f0f\uff1f<\/strong><\/p>\n<p>\u7b54\u6848\uff1a\u5728 JavaScript \u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7 <code>JSON.stringify()<\/code> \u65b9\u6cd5\u5c06\u4e00\u4e2a\u5bf9\u8c61\u8f6c\u6362\u4e3a JSON \u683c\u5f0f\u7684\u5b57\u7b26\u4e32\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u53ef\u4ee5\u7528 <code>JSON.stringify()<\/code> \u65b9\u6cd5\u5c1d\u8bd5\u5c06\u4e00\u4e2a\u5bf9\u8c61\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\uff0c\u5982\u679c\u8f6c\u6362\u6210\u529f\u4e14\u6ca1\u6709\u629b\u51fa\u5f02\u5e38\uff0c\u90a3\u4e48\u8bf4\u660e\u8be5\u5bf9\u8c61\u53ef\u4ee5\u88ab\u8f6c\u6362\u4e3a JSON \u683c\u5f0f\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-javascript\">function isConvertibleToJSON(obj) {\n  try {\n    JSON.stringify(obj);\n    return true;\n  } catch (e) {\n    return false;\n  }\n}\n\n\/\/ \u4f7f\u7528\u4f8b\u5b50\nconst person = {name: &quot;John&quot;, age: 30, city: &quot;New York&quot;};\nconst nonStringifiableObj = {foo: () =&gt; console.log(&quot;Hello&quot;)};\n\nconsole.log(isConvertibleToJSON(person));           \/\/ \u8f93\u51fa true\nconsole.log(isConvertibleToJSON(nonStringifiableObj));  \/\/ \u8f93\u51fa false\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"JSON\uff08JavaScript Object Notation\uff09\u683c\u5f0f\u662f\u5426\u6709\u6548\uff0c\u662f\u524d\u7aef\u5f00\u53d1\u4e2d\u5e38\u89c1\u7684\u9700\u6c42\u3002\u5728Jav [&hellip;]","protected":false},"author":3,"featured_media":153659,"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\/153640"}],"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=153640"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/153640\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/153659"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=153640"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=153640"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=153640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}