Changeset 2183

Show
Ignore:
Timestamp:
10/21/08 17:18:32 (3 months ago)
Author:
karpet
Message:

switch to json

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • perl/SWISH-Prog/trunk/lib/SWISH/Prog/Aggregator/Object.pm

    r2182 r2183  
    111111=item serial_format 
    112112 
    113 Which format to use in serialize(). Default is C<yaml>. You can also use C<json>. 
     113Which format to use in serialize(). Default is C<json>. You can also use C<yaml>. 
    114114If you don't like either of those, subclass SWISH::Prog::Aggregator::Object  
    115115and override serialize() to provide your own format. 
     
    130130    $self->{url}           ||= 'url'; 
    131131    $self->{modtime}       ||= 'modtime'; 
    132     $self->{serial_format} ||= 'yaml';      # better self-reference support 
     132    $self->{serial_format} ||= 'json';  
    133133 
    134134    unless ( $self->{methods} ) {