… | |
… | |
81 | |
81 | |
82 | package JSON::XS; |
82 | package JSON::XS; |
83 | |
83 | |
84 | use strict; |
84 | use strict; |
85 | |
85 | |
86 | our $VERSION = '1.4'; |
86 | our $VERSION = '1.42'; |
87 | our @ISA = qw(Exporter); |
87 | our @ISA = qw(Exporter); |
88 | |
88 | |
89 | our @EXPORT = qw(to_json from_json); |
89 | our @EXPORT = qw(to_json from_json); |
90 | |
90 | |
91 | use Exporter; |
91 | use Exporter; |
… | |
… | |
878 | still relatively early in its development. If you keep reporting bugs they |
878 | still relatively early in its development. If you keep reporting bugs they |
879 | will be fixed swiftly, though. |
879 | will be fixed swiftly, though. |
880 | |
880 | |
881 | =cut |
881 | =cut |
882 | |
882 | |
883 | our $true = do { bless \(my $dummy = "1"), "JSON::XS::Boolean" }; |
883 | our $true = do { bless \(my $dummy = 1), "JSON::XS::Boolean" }; |
884 | our $false = do { bless \(my $dummy = "0"), "JSON::XS::Boolean" }; |
884 | our $false = do { bless \(my $dummy = 0), "JSON::XS::Boolean" }; |
885 | |
885 | |
886 | sub true() { $true } |
886 | sub true() { $true } |
887 | sub false() { $false } |
887 | sub false() { $false } |
888 | |
888 | |
889 | sub is_bool($) { |
889 | sub is_bool($) { |