{"provider_url":"https://hatena.blog","published":"2013-12-28 09:05:24","provider_name":"Hatena Blog","categories":["golang"],"author_name":"yuheiomori0718","description":"\u4ee5\u524dcodeeval\u306ejson\u306e\u30d1\u30fc\u30b9\u3092\u3059\u308b\u3068\u3044\u3046challenge\u3092go\u3067\u3084\u3063\u3066\u307f\u305f\u3068\u304d\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u3067\u305f\u3002 json: cannot unmarshal null into Go value of type main.Item \u7c21\u7565\u5316\u3057\u3066\u308b\u3051\u3069\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002 package main import ( \"encoding/json\" \"log\" ) var d = []byte(`{ \"Items\":[{\"id\": 1},{\"id\": 2}, null]}`) type Item struct { Id int } type jsonobj struct { Items []\u2026","blog_url":"https://y0m0r.hateblo.jp/","type":"rich","height":"190","author_url":"https://blog.hatena.ne.jp/yuheiomori0718/","width":"100%","title":"Go\u8a00\u8a9e\u3067json\u306e\u30d1\u30fc\u30b9\u30a8\u30e9\u30fc","url":"https://y0m0r.hateblo.jp/entry/20131228/1388189124","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy0m0r.hateblo.jp%2Fentry%2F20131228%2F1388189124\" title=\"Go\u8a00\u8a9e\u3067json\u306e\u30d1\u30fc\u30b9\u30a8\u30e9\u30fc - \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>","version":"1.0","image_url":null,"blog_title":"\u30e1\u30e2\u7f6e\u304d\u5834"}