{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpod.hatenablog.com%2Fentry%2F2017%2F09%2F24%2F053103\" title=\"singledispatch\u3068json.dump\u304c\u76f8\u6027\u826f\u3044\u304b\u3082\uff1f - podhmo&#39;s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"podhmo's diary","height":"190","provider_url":"https://hatena.blog","type":"rich","image_url":null,"title":"singledispatch\u3068json.dump\u304c\u76f8\u6027\u826f\u3044\u304b\u3082\uff1f","published":"2017-09-24 12:21:46","description":"json\u306eencode\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u306f\u6614\u306b\u66f8\u3044\u305f\u3053\u306e\u8fba\u3092\u898b\u3066\u3082\u3089\u3046\u3068\u3057\u3066\u3002 python\u3067json\u51fa\u529b\u3059\u308b\u969b\u3067\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u578b(e.g. datetime)\u306e\u5024\u3092\u5909\u63db\u3057\u306a\u304c\u3089\u51fa\u529b\u3057\u305f\u3044 - Qiita \u4eca\u56de\u306e\u4e3b\u984c\u306f\u3001json.dumps\u306b\u6e21\u3059default\u306e\u95a2\u6570\u3068\u3057\u3066functools.singledispatch\u304c\u6709\u7528\u304b\u3082\u3068\u3044\u3046\u8a71\u3002 \u4f7f\u3044\u304b\u305f singledispatch\u3092\u5229\u7528\u3057\u305f\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u5b9a\u7fa9 \u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306aextjson\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u5b9a\u7fa9\u3057\u3066\u3042\u3052\u308b\u3002 extjson.py import json from functools import ( singledispatch, part\u2026","url":"https://pod.hatenablog.com/entry/2017/09/24/053103","width":"100%","author_name":"podhmo","blog_url":"https://pod.hatenablog.com/","categories":["python","json","singledispatch"],"version":"1.0","author_url":"https://blog.hatena.ne.jp/podhmo/","provider_name":"Hatena Blog"}