{"author_name":"yuheiomori0718","image_url":null,"author_url":"https://blog.hatena.ne.jp/yuheiomori0718/","published":"2014-01-20 23:31:25","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy0m0r.hateblo.jp%2Fentry%2F20140120%2F1390228285\" title=\"Go\u8a00\u8a9e\u3067\u69cb\u9020\u4f53\u3092json\u306b\u5909\u63db\u3059\u308bSnippet - \u30e1\u30e2\u7f6e\u304d\u5834\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"Go\u8a00\u8a9e\u3067\u69cb\u9020\u4f53\u3092json\u306b\u5909\u63db\u3059\u308bSnippet","url":"https://y0m0r.hateblo.jp/entry/20140120/1390228285","categories":["golang"],"blog_title":"\u30e1\u30e2\u7f6e\u304d\u5834","provider_url":"https://hatena.blog","version":"1.0","description":"package main import ( \"bytes\" \"encoding/json\" ) type Person struct { Name string Age int Friend *Person } func main() { friend := Person{\"john\", 40, nil} person := Person{\"paul\", 71, &friend} var buf bytes.Buffer b, _ := json.Marshal(person) buf.Write(b) println(buf.String()) } {\"Name\":\"paul\",\"Age\":\u2026","height":"190","provider_name":"Hatena Blog","blog_url":"https://y0m0r.hateblo.jp/","width":"100%"}