--- JSON-XS/XS.pm 2007/08/27 01:49:01 1.59 +++ JSON-XS/XS.pm 2007/10/11 22:52:52 1.62 @@ -1,7 +1,12 @@ +=encoding utf-8 + =head1 NAME JSON::XS - JSON serialising/deserialising, done correctly and fast +JSON::XS - 正しくて高速な JSON シリアライザ/デシリアライザ + (http://fleur.hio.jp/perldoc/mix/lib/JSON/XS.html) + =head1 SYNOPSIS use JSON::XS; @@ -312,6 +317,17 @@ "k2": "v2", <- this comma not normally allowed } +=item * shell-style '#'-comments + +Whenever JSON allows whitespace, shell-style comments are additionally +allowed. They are terminated by the first carriage-return or line-feed +character, after which more white-space and comments are allowed. + + [ + 1, # this comment not allowed in JSON + # neither this one... + ] + =back =item $json = $json->canonical ([$enable]) @@ -657,7 +673,7 @@ =item JSON::XS::true, JSON::XS::false These special values become JSON true and JSON false values, -respectively. You cna alos use C<\1> and C<\0> directly if you want. +respectively. You can also use C<\1> and C<\0> directly if you want. =item blessed objects