Changeset 10622


Ignore:
Timestamp:
02/08/10 03:59:50 (2 years ago)
Author:
submersible_toaster
Message:

back to JSON from JSON::XS.. likely to be JSON::PP any time now

Location:
trunk/Padre-Plugin-Swarm
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre-Plugin-Swarm/Makefile.PL

    r10521 r10622  
    33all_from      lib/Padre/Plugin/Swarm.pm 
    44requires      Padre                 0.56 
    5 requires      JSON::XS              2.26 
     5requires      JSON              2.15 
    66requires      IO::Socket::Multicast 1.11 
    77requires      IO::Select 
  • trunk/Padre-Plugin-Swarm/junkyard/irc_gw.pl

    r6237 r10622  
    55use AnyEvent::IRC::Client; 
    66use Data::Dumper; 
    7 use JSON::XS; 
     7use JSON; 
    88use Padre::Swarm::Transport::Multicast; 
    99my $gatewayid = rand() . $$; 
     
    7878            entity => $con->nick, }; 
    7979             
    80       $swarm->tell_channel( 12000, JSON::XS::encode_json $msg ); 
     80      $swarm->tell_channel( 12000, JSON::encode_json $msg ); 
    8181      #$io->push_write( json => $msg ); 
    8282   } 
  • trunk/Padre-Plugin-Swarm/junkyard/relay.pl

    r9700 r10622  
    77use AnyEvent::Handle; 
    88use IO::Socket::Multicast; 
    9 use JSON::XS; 
     9use JSON; 
    1010use Carp qw( cluck ); 
    1111 
     
    133133    } 
    134134    $message->{_relay} = $handle->{token}; 
    135     my $payload = JSON::XS::encode_json($message); 
     135    my $payload = JSON::encode_json($message); 
    136136    #$ae_local->fh->mcast_send( 
    137137    #    $payload, 
  • trunk/Padre-Plugin-Swarm/lib/Padre/Plugin/Swarm/Transport/Global/WxSocket.pm

    r10551 r10622  
    22use strict; 
    33use warnings; 
    4 use JSON::XS; 
     4use JSON; 
    55use Wx qw( :socket ); 
    66use Padre::Wx (); 
     
    2626    my $self = shift; 
    2727     
    28     my $marshal = JSON::XS->new; 
     28    my $marshal = JSON->new; 
    2929    $self->{marshal} = $marshal; 
    3030#    my $config = $self->plugin->config_read; 
  • trunk/Padre-Plugin-Swarm/lib/Padre/Service/Swarm.pm

    r10551 r10622  
    33use strict; 
    44use warnings; 
    5 use JSON::XS; 
     5use JSON; 
    66use Padre::Wx      (); 
    77use Padre::Service (); 
     
    127127 
    128128sub marshal { 
    129     JSON::XS->new 
     129    JSON->new 
    130130        ->allow_blessed 
    131131        ->convert_blessed 
  • trunk/Padre-Plugin-Swarm/lib/Padre/Swarm/Geometry.pm

    r10507 r10622  
    66use Graph; 
    77use Graph::Directed; 
    8 use JSON::XS; 
    98use Class::XSAccessor  
    109    accessors => { 
  • trunk/Padre-Plugin-Swarm/t/06_service.t

    r10144 r10622  
    11use Test::More skip_all => 'Still trouble driving padre in testing'; 
    2 use JSON::XS; 
     2use JSON; 
    33use t::lib::Demo; 
    44 
     
    2626 
    2727$socket->mcast_send( 
    28         JSON::XS::encode_json( { 
     28        JSON::encode_json( { 
    2929        from => getlogin(), 
    3030        type =>'chat', 
Note: See TracChangeset for help on using the changeset viewer.