{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsfujiwara.hatenablog.com%2Fentry%2F20060620%2F1150797461\" title=\"\u6539\u884c\u3092\u542b\u3093\u3060JSON - \u9152\u65e5\u8a18 \u306f\u3066\u306a\u652f\u5e97\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","blog_title":"\u9152\u65e5\u8a18 \u306f\u3066\u306a\u652f\u5e97","width":"100%","provider_name":"Hatena Blog","author_name":"sfujiwara","categories":["JSON"],"published":"2006-06-20 18:57:41","image_url":null,"title":"\u6539\u884c\u3092\u542b\u3093\u3060JSON","url":"https://sfujiwara.hatenablog.com/entry/20060620/1150797461","description":"Perl \u306e JSON::Syck\u3067\u30c7\u30fc\u30bf\u306b\u6539\u884c\u304c\u542b\u307e\u308c\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092 Dump \u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u51fa\u529b\u304c\u5f97\u3089\u308c\u308b\u3002 $ perl -de0 DB<1> use JSON::Syck DB<2> $data = { foo => \"xxx\\nyyy\" } DB<3> p JSON::Syck::Dump($data) {\"foo\":\"xxx\\n\\ yyy\"}\u8aad\u307f\u3084\u3059\u304f\u3059\u308b\u305f\u3081\u304b\u3001\u6539\u884c\u30b3\u30fc\u30c9\u3092 \\ \u3067\u30a8\u30b9\u30b1\u30fc\u30d7\u3057\u305f\u5f62\u5f0f\u3002 JSON.pm \u3060\u3068\u6539\u884c\u30b3\u30fc\u30c9\u306f\u542b\u307e\u308c\u306a\u3044\u3002 DB<4> use JSON DB<5> p objToJson($data) {\"foo\":\"xxx\\nyyy\"}\u3067\u3001JSO\u2026","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/sfujiwara/","version":"1.0","blog_url":"https://sfujiwara.hatenablog.com/","height":"190"}