+Wed Jul 09 11:16:00 PST 2008 (jshirley) - Release 0.63
+ Changing from JSON::Syck to JSON/JSON::XS
+ Refactored tests to be more applicable to current state of affairs
+
Wed Jul 02 07:53:00 PST 2008 (jshirley) - Release 0.62
Reshipping with current Module::Install included due to error reports
about failed installs
requires('URI::Find' => undef);
requires('Data::Dump' => undef);
+feature 'JSON (application/json) support',
+ -default => 0,
+ 'JSON' => undef;
+ 'JSON::XS' => undef;
+
feature 'Data::Denter (text/x-data-denter) support',
-default => 0,
'Data::Denter' => undef;
use warnings;
use base 'Catalyst::Action';
-use JSON::Syck;
+use JSON qw( decode_json );
sub execute {
my $self = shift;
}
if ( $rbody ) {
- my $rdata = eval { JSON::Syck::Load( $rbody ); };
+ my $rdata = eval { decode_json( $rbody ) };
if ($@) {
return $@;
}
use Class::Inspector;
use Catalyst;
use Catalyst::Request::REST;
+use Catalyst::Controller::REST;
+
use 5.8.1;
our
- $VERSION = '0.62';
+ $VERSION = $Catalyst::Controller::REST::VERSION;
# This is wrong in several ways. First, there's no guarantee that
# Catalyst.pm has not been subclassed. Two, there's no guarantee that
use warnings;
use base 'Catalyst::Action';
-use JSON::Syck;
+use JSON qw(encode_json);
sub execute {
my $self = shift;
) || 'rest';
my $output;
eval {
- $output = JSON::Syck::Dump($c->stash->{$stash_key});
+ $output = encode_json( $c->stash->{$stash_key} );
};
if ($@) {
return $@;
package Catalyst::Controller::REST;
-our $VERSION = 0.62;
+our $VERSION = 0.63;
=head1 NAME