{"id":983,"date":"2025-01-16T00:34:09","date_gmt":"2025-01-15T16:34:09","guid":{"rendered":"https:\/\/www.laixuexila.com\/?p=983"},"modified":"2025-01-16T00:34:09","modified_gmt":"2025-01-15T16:34:09","slug":"%e6%8e%8c%e6%8f%a1-go-%e7%9a%84-encoding-json%ef%bc%9a%e9%ab%98%e6%95%88%e8%a7%a3%e6%9e%90%e6%8a%80%e6%9c%af%e6%8f%90%e5%8d%87%e6%80%a7%e8%83%bd%ef%bc%8c%e4%bc%98%e5%8c%96-json-%e8%a7%a3%e7%a0%81","status":"publish","type":"post","link":"https:\/\/www.laixuexila.com\/index.php\/2025\/01\/16\/%e6%8e%8c%e6%8f%a1-go-%e7%9a%84-encoding-json%ef%bc%9a%e9%ab%98%e6%95%88%e8%a7%a3%e6%9e%90%e6%8a%80%e6%9c%af%e6%8f%90%e5%8d%87%e6%80%a7%e8%83%bd%ef%bc%8c%e4%bc%98%e5%8c%96-json-%e8%a7%a3%e7%a0%81\/","title":{"rendered":"\u638c\u63e1 Go \u7684\u00a0encoding\/json\uff1a\u9ad8\u6548\u89e3\u6790\u6280\u672f\u63d0\u5347\u6027\u80fd\uff0c\u4f18\u5316 JSON \u89e3\u7801"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u5728 Go \u8bed\u8a00\u4e2d\uff0c<code>encoding\/json<\/code> \u662f\u7528\u4e8e\u7f16\u7801\uff08\u5e8f\u5217\u5316\uff09\u548c\u89e3\u7801\uff08\u53cd\u5e8f\u5217\u5316\uff09JSON \u6570\u636e\u7684\u6807\u51c6\u5e93\u3002\u867d\u7136\u8be5\u5e93\u63d0\u4f9b\u4e86\u7b80\u5355\u6613\u7528\u7684 API\uff0c\u4f46\u5728\u5904\u7406\u5927\u89c4\u6a21\u6570\u636e\u65f6\uff0c\u5982\u679c\u6ca1\u6709\u4f18\u5316\uff0c\u53ef\u80fd\u4f1a\u51fa\u73b0\u6027\u80fd\u74f6\u9888\u3002\u56e0\u6b64\uff0c\u638c\u63e1\u9ad8\u6548\u7684 JSON \u89e3\u6790\u6280\u672f\uff0c\u5bf9\u4e8e\u6784\u5efa\u9ad8\u6027\u80fd\u5e94\u7528\u7a0b\u5e8f\u81f3\u5173\u91cd\u8981\u3002<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">\u672c\u6587\u5c06\u6df1\u5165\u4ecb\u7ecd\u5982\u4f55\u5728 Go \u4e2d\u4f7f\u7528 <code>encoding\/json<\/code> \u63d0\u9ad8 JSON \u89e3\u6790\u7684\u6548\u7387\uff0c\u7279\u522b\u662f\u5728\u6027\u80fd\u8981\u6c42\u8f83\u9ad8\u7684\u573a\u666f\u4e0b\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">1. <strong>Go \u7684 <code>encoding\/json<\/code> \u57fa\u7840<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>encoding\/json<\/code> \u63d0\u4f9b\u4e86\u4e24\u79cd\u6838\u5fc3\u529f\u80fd\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u7f16\u7801\uff08Marshal\uff09<\/strong>\uff1a\u5c06 Go \u6570\u636e\u7ed3\u6784\u8f6c\u6362\u4e3a JSON \u683c\u5f0f\u3002<\/li>\n\n\n\n<li><strong>\u89e3\u7801\uff08Unmarshal\uff09<\/strong>\uff1a\u5c06 JSON \u6570\u636e\u8f6c\u6362\u4e3a Go \u6570\u636e\u7ed3\u6784\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">2. <strong>\u9ad8\u6548 JSON \u89e3\u6790\u7684\u5173\u952e\u6280\u672f<\/strong><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">2.1 <strong>\u907f\u514d\u4e0d\u5fc5\u8981\u7684\u5185\u5b58\u5206\u914d<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">JSON \u89e3\u7801\u65f6\uff0cGo \u4f1a\u4e3a\u6bcf\u4e2a\u5b57\u6bb5\u8fdb\u884c\u5185\u5b58\u5206\u914d\u3002\u5982\u679c\u6211\u4eec\u80fd\u907f\u514d\u4e0d\u5fc5\u8981\u7684\u5206\u914d\uff0c\u6027\u80fd\u5c06\u5f97\u5230\u663e\u8457\u63d0\u5347\u3002\u7279\u522b\u662f\u5bf9\u4e8e\u5927\u578b JSON \u6570\u636e\uff0c\u51cf\u5c11\u5185\u5b58\u5206\u914d\u548c\u62f7\u8d1d\u81f3\u5173\u91cd\u8981\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u793a\u4f8b\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>type User struct {\n    Name    string `json:\"name\"`\n    Age     int    `json:\"age\"`\n    Address string `json:\"address\"`\n}\n\nfunc main() {\n    data := &#91;]byte(`{\"name\": \"Alice\", \"age\": 30, \"address\": \"Wonderland\"}`)\n\n    var user User\n    err := json.Unmarshal(data, &amp;user)\n    if err != nil {\n        fmt.Println(\"Error:\", err)\n    }\n    fmt.Println(user)\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u91cc\uff0cJSON \u88ab\u89e3\u6790\u5230 <code>User<\/code> \u7ed3\u6784\u4f53\u4e2d\u3002Go \u5185\u90e8\u4f1a\u4e3a\u6bcf\u4e2a\u5b57\u6bb5\u5206\u914d\u5185\u5b58\uff0c\u5c24\u5176\u5728\u5904\u7406\u8f83\u5927\u7684 JSON \u6587\u4ef6\u65f6\uff0c\u5185\u5b58\u5206\u914d\u53ef\u80fd\u6210\u4e3a\u74f6\u9888\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4f18\u5316\u5efa\u8bae<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u907f\u514d\u5c06\u5927\u7684 JSON \u6570\u636e\u4e00\u6b21\u6027\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\uff0c\u5c3d\u53ef\u80fd\u5206\u5757\u89e3\u7801\u3002<\/li>\n\n\n\n<li>\u4f7f\u7528 <code>json.Decoder<\/code> \u6765\u9010\u6b65\u89e3\u7801 JSON\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">2.2 <strong>\u4f7f\u7528 <code>json.Decoder<\/code> \u8fdb\u884c\u6d41\u5f0f\u89e3\u7801<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u5bf9\u4e8e\u5927\u578b JSON \u6587\u4ef6\uff0c\u4f7f\u7528 <code>json.Decoder<\/code> \u53ef\u4ee5\u9010\u6b65\u89e3\u7801\u6570\u636e\uff0c\u800c\u4e0d\u662f\u4e00\u6b21\u6027\u5c06\u6574\u4e2a\u6587\u4ef6\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\uff0c\u8fd9\u6837\u53ef\u4ee5\u663e\u8457\u51cf\u5c11\u5185\u5b58\u5360\u7528\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>func processJSONStream(r io.Reader) {\n    decoder := json.NewDecoder(r)\n    for {\n        var user User\n        if err := decoder.Decode(&amp;user); err == io.EOF {\n            break \/\/ \u6587\u4ef6\u7ed3\u675f\n        } else if err != nil {\n            fmt.Println(\"Error:\", err)\n            break\n        }\n        fmt.Println(user)\n    }\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>json.NewDecoder<\/code> \u521b\u5efa\u4e86\u4e00\u4e2a\u89e3\u7801\u5668\uff0c\u6211\u4eec\u4f7f\u7528 <code>Decode<\/code> \u65b9\u6cd5\u9010\u6b65\u89e3\u7801 JSON \u5bf9\u8c61\uff0c\u6bcf\u6b21\u89e3\u7801\u4e00\u4e2a <code>User<\/code> \u5bf9\u8c61\u3002\u8fd9\u6837\u505a\u53ef\u4ee5\u6709\u6548\u5730\u51cf\u5c11\u5185\u5b58\u4f7f\u7528\uff0c\u5c24\u5176\u9002\u7528\u4e8e\u5904\u7406\u5927\u89c4\u6a21 JSON \u6570\u636e\u6d41\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">2.3 <strong>\u907f\u514d\u53cd\u5c04\u548c\u6807\u7b7e\u7684\u4f7f\u7528<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728 Go \u4e2d\uff0c<code>encoding\/json<\/code> \u4f7f\u7528\u53cd\u5c04\u6765\u5904\u7406\u7ed3\u6784\u4f53\u5b57\u6bb5\uff0c\u8fd9\u5bf9\u4e8e\u6027\u80fd\u6765\u8bf4\u662f\u4e00\u4e2a\u5f00\u9500\u3002\u901a\u8fc7\u63a7\u5236\u5b57\u6bb5\u7684\u7c7b\u578b\u3001\u5b57\u6bb5\u987a\u5e8f\u548c\u6807\u7b7e\uff0c\u80fd\u591f\u51cf\u5c11\u53cd\u5c04\u7684\u5f00\u9500\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4f18\u5316\u65b9\u6cd5<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u590d\u6742\u7684\u7ed3\u6784\u4f53\u6807\u7b7e\uff0c\u7279\u522b\u662f\u5f53\u4f60\u4e0d\u9700\u8981 JSON \u5b57\u6bb5\u540d\u79f0\u4e0e Go \u7ed3\u6784\u4f53\u5b57\u6bb5\u540d\u79f0\u76f8\u540c\u65f6\u3002<\/li>\n\n\n\n<li>\u5bf9\u4e8e\u4e0d\u5fc5\u8981\u7684\u5b57\u6bb5\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>json:\"-\"<\/code> \u6807\u7b7e\u5ffd\u7565\u5b83\u4eec\uff0c\u907f\u514d\u4e0d\u5fc5\u8981\u7684\u89e3\u6790\u3002<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>type User struct {\n    Name    string `json:\"name\"`\n    Age     int    `json:\"age\"`\n    \/\/ Address \u5b57\u6bb5\u6ca1\u6709\u6620\u5c04\u5230 JSON\uff0c\u51cf\u5c11\u4e0d\u5fc5\u8981\u7684\u89e3\u6790\n    Address string `json:\"-\"`\n}<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">2.4 <strong>\u4f7f\u7528 <code>json.RawMessage<\/code> \u5904\u7406\u672a\u89e3\u6790\u7684\u90e8\u5206<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u4f60\u9700\u8981\u89e3\u6790\u90e8\u5206 JSON \u6570\u636e\uff0c\u800c\u4e0d\u9700\u8981\u7acb\u523b\u5904\u7406\u6240\u6709\u5b57\u6bb5\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>json.RawMessage<\/code> \u6765\u5ef6\u8fdf\u89e3\u6790\u3002\u8fd9\u53ef\u4ee5\u63d0\u9ad8\u6027\u80fd\uff0c\u7279\u522b\u662f\u5f53\u4f60\u4e0d\u5173\u5fc3\u67d0\u4e9b\u5b57\u6bb5\u7684\u5177\u4f53\u503c\u65f6\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>type User struct {\n    Name    string          `json:\"name\"`\n    Age     int             `json:\"age\"`\n    Address json.RawMessage `json:\"address\"`\n}\n\nfunc main() {\n    data := &#91;]byte(`{\"name\": \"Alice\", \"age\": 30, \"address\": {\"city\": \"Wonderland\", \"postcode\": \"12345\"}}`)\n\n    var user User\n    err := json.Unmarshal(data, &amp;user)\n    if err != nil {\n        fmt.Println(\"Error:\", err)\n    }\n\n    fmt.Println(\"User:\", user.Name, user.Age)\n    fmt.Println(\"Raw Address:\", string(user.Address)) \/\/ \u5ef6\u8fdf\u89e3\u6790 address\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u901a\u8fc7\u4f7f\u7528 <code>json.RawMessage<\/code>\uff0c<code>Address<\/code> \u5b57\u6bb5\u88ab\u5ef6\u8fdf\u89e3\u6790\uff0c\u8fd9\u6837\u53ef\u4ee5\u63d0\u9ad8\u6027\u80fd\uff0c\u5c24\u5176\u662f\u5f53\u4f60\u53ea\u9700\u8981\u5728\u540e\u7eed\u67d0\u4e2a\u65f6\u523b\u624d\u5904\u7406 <code>Address<\/code> \u6570\u636e\u65f6\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">2.5 <strong>\u6279\u91cf\u89e3\u7801\u4e0e\u5e76\u53d1\u5904\u7406<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u5bf9\u4e8e\u9700\u8981\u89e3\u7801\u5927\u91cf JSON \u6570\u636e\u7684\u573a\u666f\uff0c\u53ef\u4ee5\u901a\u8fc7\u5e76\u53d1\u5904\u7406\u63d0\u5347\u6027\u80fd\u3002\u5229\u7528 goroutines \u548c\u901a\u9053\uff08channels\uff09\uff0c\u53ef\u4ee5\u5e76\u884c\u89e3\u7801\u591a\u4e2a JSON \u6570\u636e\u5757\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u793a\u4f8b\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>func decodeJSONConcurrently(data &#91;]byte, numGoroutines int) {\n    var wg sync.WaitGroup\n    ch := make(chan User, numGoroutines)\n\n    \/\/ \u5e76\u53d1\u89e3\u7801\n    for i := 0; i &lt; numGoroutines; i++ {\n        wg.Add(1)\n        go func() {\n            defer wg.Done()\n            var user User\n            if err := json.Unmarshal(data, &amp;user); err == nil {\n                ch &lt;- user\n            }\n        }()\n    }\n\n    \/\/ \u7b49\u5f85\u6240\u6709 goroutines \u5b8c\u6210\n    go func() {\n        wg.Wait()\n        close(ch)\n    }()\n\n    \/\/ \u5904\u7406\u89e3\u7801\u540e\u7684\u7ed3\u679c\n    for user := range ch {\n        fmt.Println(user)\n    }\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u901a\u8fc7\u4f7f\u7528 goroutines \u5e76\u53d1\u5904\u7406\u6570\u636e\u89e3\u7801\uff0c\u53ef\u4ee5\u663e\u8457\u63d0\u9ad8\u6027\u80fd\uff0c\u5c24\u5176\u662f\u5728\u5904\u7406\u591a\u4e2a\u72ec\u7acb\u7684 JSON \u6570\u636e\u7247\u6bb5\u65f6\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. <strong>\u6027\u80fd\u4f18\u5316\u603b\u7ed3<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u9010\u6b65\u89e3\u7801<\/strong>\uff1a\u4f7f\u7528 <code>json.Decoder<\/code> \u9010\u6b65\u89e3\u7801\u5927\u578b JSON \u6570\u636e\uff0c\u907f\u514d\u4e00\u6b21\u6027\u52a0\u8f7d\u6574\u4e2a\u6587\u4ef6\u5230\u5185\u5b58\u3002<\/li>\n\n\n\n<li><strong>\u907f\u514d\u53cd\u5c04\u5f00\u9500<\/strong>\uff1a\u901a\u8fc7\u7b80\u5316\u7ed3\u6784\u4f53\u6807\u7b7e\u548c\u5b57\u6bb5\uff0c\u51cf\u5c11\u53cd\u5c04\u7684\u4f7f\u7528\u3002<\/li>\n\n\n\n<li><strong>\u5ef6\u8fdf\u89e3\u6790<\/strong>\uff1a\u4f7f\u7528 <code>json.RawMessage<\/code> \u5ef6\u8fdf\u89e3\u6790 JSON \u4e2d\u7684\u4e00\u4e9b\u5b57\u6bb5\uff0c\u907f\u514d\u4e0d\u5fc5\u8981\u7684\u89e3\u6790\u3002<\/li>\n\n\n\n<li><strong>\u5e76\u53d1\u89e3\u7801<\/strong>\uff1a\u5bf9\u4e8e\u591a\u4e2a\u72ec\u7acb\u7684 JSON \u6570\u636e\u5757\uff0c\u53ef\u4ee5\u4f7f\u7528\u5e76\u53d1\u89e3\u7801\u63d0\u9ad8\u6027\u80fd\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">4. <strong>\u8fdb\u4e00\u6b65\u7684\u6027\u80fd\u4f18\u5316\u6280\u5de7<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5185\u5b58\u6c60<\/strong>\uff1a\u4f7f\u7528 <code>sync.Pool<\/code> \u6765\u590d\u7528\u89e3\u7801\u65f6\u7684\u5185\u5b58\u5bf9\u8c61\uff0c\u907f\u514d\u91cd\u590d\u7684\u5185\u5b58\u5206\u914d\u3002<\/li>\n\n\n\n<li><strong>\u907f\u514d\u8fc7\u5ea6\u7684\u590d\u5236<\/strong>\uff1a\u4f7f\u7528\u6307\u9488\u6765\u4f20\u9012\u5927\u578b\u6570\u636e\u7ed3\u6784\uff0c\u907f\u514d\u4e0d\u5fc5\u8981\u7684\u590d\u5236\u3002<\/li>\n\n\n\n<li><strong>\u4f7f\u7528\u5176\u4ed6\u5e93<\/strong>\uff1a\u5728\u6027\u80fd\u8981\u6c42\u6781\u9ad8\u7684\u573a\u666f\u4e0b\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u66f4\u9ad8\u6548\u7684 JSON \u89e3\u6790\u5e93\uff0c\u5982 <code>github.com\/json-iterator\/go<\/code>\uff0c\u8be5\u5e93\u63d0\u4f9b\u4e86\u6bd4 Go \u81ea\u5e26\u7684 <code>encoding\/json<\/code> \u66f4\u9ad8\u6548\u7684\u89e3\u6790\u6027\u80fd\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">5. <strong>\u603b\u7ed3<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go \u7684 <code>encoding\/json<\/code> \u63d0\u4f9b\u4e86\u975e\u5e38\u65b9\u4fbf\u7684 JSON \u89e3\u6790\u529f\u80fd\uff0c\u4f46\u5f53\u6570\u636e\u91cf\u8f83\u5927\u65f6\uff0c\u6027\u80fd\u53ef\u80fd\u6210\u4e3a\u74f6\u9888\u3002<\/li>\n\n\n\n<li>\u901a\u8fc7\u6d41\u5f0f\u89e3\u7801\u3001\u907f\u514d\u53cd\u5c04\u3001\u5ef6\u8fdf\u89e3\u6790\u3001\u5e76\u53d1\u5904\u7406\u7b49\u6280\u672f\uff0c\u53ef\u4ee5\u663e\u8457\u63d0\u9ad8 JSON \u89e3\u6790\u7684\u6548\u7387\u3002<\/li>\n\n\n\n<li>\u5bf9\u4e8e\u975e\u5e38\u9ad8\u6027\u80fd\u7684\u9700\u6c42\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u66f4\u9ad8\u6548\u7684\u7b2c\u4e09\u65b9 JSON \u5e93\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 Go \u8bed\u8a00\u4e2d\uff0cencoding\/json \u662f\u7528\u4e8e\u7f16\u7801\uff08\u5e8f\u5217\u5316\uff09\u548c\u89e3\u7801\uff08\u53cd\u5e8f\u5217\u5316\uff09JSON \u6570\u636e\u7684\u6807\u51c6\u5e93\u3002\u867d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[58],"tags":[],"class_list":["post-983","post","type-post","status-publish","format-standard","hentry","category-golang"],"_links":{"self":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/983","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/comments?post=983"}],"version-history":[{"count":1,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/983\/revisions"}],"predecessor-version":[{"id":984,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/983\/revisions\/984"}],"wp:attachment":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/media?parent=983"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/categories?post=983"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/tags?post=983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}