Skip to content

Commit

Permalink
excise JSON::XS
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbs committed Jan 12, 2010
1 parent f419131 commit d3c341d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion util/build-www.pl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use autodie;
use File::Find::Rule;
use File::Path;
use JSON::XS;
use JSON 2;
use Text::Template;

my $template = Text::Template->new(
Expand Down
4 changes: 2 additions & 2 deletions util/reindex.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
use warnings;

use File::Find::Rule;
use JSON::XS;
use JSON 2;

my @files = File::Find::Rule->file->in('spec');
my $json = JSON::XS->new->encode(\@files);
my $json = JSON->new->encode(\@files);

print "$json\n";
2 changes: 1 addition & 1 deletion www/src/TEMPLATE
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ $(function() {
});

if ({{ $ct_page ? 'true' : 'false' }}) {
var types = {{ JSON::XS->new->encode(\@coretypes) }};
var types = {{ JSON->new->encode(\@coretypes) }};
for (i in types) {
addSidebarLink(
'{{$root}}coretype/' + types[i] + '.html',
Expand Down
4 changes: 2 additions & 2 deletions www/src/faq.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ <h2 id='data-not-strs'>Only for JSON?</h2>
them. It doesn't know about JSON, YAML, XML, or any other way to serialize
or exchange data. There are a few unfortunate exceptions, though. For
example, because Perl has no native boolean type, it relies on encountering
the kind of object that a JSON::XS deserializer would create. These
exceptions are always about language constraints, and never about Rx itself.
the kind of object that a JSON deserializer would create. These exceptions
are always about language constraints, and never about Rx itself.
</p>

<p>
Expand Down

0 comments on commit d3c341d

Please sign in to comment.