ad::From::PNG::View::JSON;
use strict;
use warnings;
BEGIN {
$FuseBead::From::PNG::VERSION = '0.02';
}
use parent qw(FuseBead::From::PNG::View);
use Data::Debug;
use JSON;
sub print {
my
= ref $_[0] eq 'HASH' ? %{$_[0]} : @_;
return JSON->new->utf8->pretty->encode( \%args );
}
=pod
=head1 NAME
FuseBead::From::PNG::View::JSON - Format data returned from FuseBead::From::PNG
=h
me => 'my_png.png' });
$object->process(view => 'JSON'); # Data is returned as JSON
=head1 DESCRIPTION
Class to returned processed data in JSON format
=head1 USAGE
=head2 new
Usage : ->ne