ブログ エントリー
-
[perl] JSON
プログラム - 2013/03/08 11:52:26# オブジェクト my $json = JSON->new(); $json->utf8(0); # utf8 フラグを付けたまま扱う $json->utf8(1); #ut8 フラグを付けずに扱う $json->encode($hash); # perl ハッシュを JSON 文字列へ $json->decode($json); # JSON 文字列を perl ハッシュへ # 関数 (utf8 フラグは外す) encode($hash); # perl ハッシュを JSON 文字列へ decode($json); # JSON 文字列を perl ハッシュへ # 関数 (utf8 フラグは付けたまま) to_json($hash); # perl ハッシュを JSON 文字列へ from_json($json); # JSON 文字列を perl ハッシュへ -
[perl] JSON
http://0pm.0am.jp/memo3/index.cgi?entry=20130308_115226

