Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Sisimai::Data::JSON(3)User Contributed Perl DocumentatioSisimai::Data::JSON(3)

NAME
       Sisimai::Data::JSON - Dumps parsed data object as a JSON	format

SYNOPSIS
	   use Sisimai::Data;
	   my $data = Sisimai::Data->make('data' => <Sisimai::Message> object);
	   for my $e ( @$data )	{
	       print $e->dump('json');
	   }

DESCRIPTION
       Sisimai::Data::JSON dumps parsed	data object as a JSON format. This
       class and method	should be called from the parent object
       "Sisimai::Data".

CLASS METHODS
   "dump(Sisimai::Data)"
       "dump" method returns Sisimai::Data object as a JSON formatted string.

	   my $mail = Sisimai::Mail->new('/var/mail/root');
	   while( my $r	= $mail->read )	{
	       my $mesg	= Sisimai::Message->new('data' => $r);
	       my $data	= Sisimai::Data->make('data' =>	$mesg);
	       for my $e ( @$data ) {
		   print $e->dump('json');
	       }
	   }

AUTHOR
       azumakuniyuki

COPYRIGHT
       Copyright (C) 2014-2016,2018 azumakuniyuki, All rights reserved.

LICENSE
       This software is	distributed under The BSD 2-Clause License.

perl v5.32.0			  2020-07-17		Sisimai::Data::JSON(3)

NAME | SYNOPSIS | DESCRIPTION | CLASS METHODS | AUTHOR | COPYRIGHT | LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Sisimai::Data::JSON&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help