Sisimai::Fact::JSON(3pm) | User Contributed Perl Documentation | Sisimai::Fact::JSON(3pm) |
Sisimai::Fact::JSON - Dumps parsed data object as a JSON format
use Sisimai::Fact; my $fact = Sisimai::Fact->rise('data' => 'entire email text'); for my $e ( @$fact ) { print $e->dump('json'); }
Sisimai::Fact::JSON dumps parsed data object as a JSON format. This class and method should be called from the parent object "Sisimai::Fact".
"dump" method returns Sisimai::Fact object as a JSON formatted string.
my $mail = Sisimai::Mail->new('/var/mail/root'); while( my $r = $mail->read ) { my $fact = Sisimai::Fact->rise('data' => 'entire email text'); for my $e ( @$fact ) { print $e->dump('json'); } }
azumakuniyuki
Copyright (C) 2014-2016,2018,2020,2021 azumakuniyuki, All rights reserved.
This software is distributed under The BSD 2-Clause License.
2024-03-03 | perl v5.38.2 |