Sisima...a::JSON(3pm)
β¨ NAME β¨
Sisimai::Data::JSON β it dumps parsed data object as a JSON format π
(also hi bestie, you're reading the Sisima...a::JSON(3pm) manual page, welcome π«Ά)
πΈ SYNOPSIS πΈ
use Sisimai::Data;
my $data = Sisimai::Data->make('data' => <Sisimai::Message> object);
for my $e ( @$data ) {
print $e->dump('json');
}
okay so that's the whole vibe in four lines, no cap β¨
π¦ DESCRIPTION π¦
Sisimai::Data::JSON dumps parsed data object as a JSON format. literally that's its whole job and it ate π
lowkey important: this class and method should be called from the parent object Sisimai::Data. don't be out here calling it from nowhere, bestie, it's giving "not your moment" π
π CLASS METHODS π
π dump(Sisimai::Data)
the dump method returns Sisimai::Data object as a JSON formatted string. that's it. that's the girl π
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');
}
}
likeβ¦ read the mail, build the message, make the data, dump the json, loop. iconic behavior fr fr π₯
π AUTHOR π
azumakuniyuki π
π COPYRIGHT π
Copyright (C) 2014-2016,2018 azumakuniyuki, All rights reserved.
π LICENSE π
This software is distributed under The BSD 2-Clause License.
and that's a wrap, bestie π
this lil masterpiece is from the Sisima...a::JSON(3pm) manual, built on perl v5.36.0, dated 2022-12-23 β she's vintage, she's classic, she's slaying β¨π¦π
π¦ where this page comes from
- debian bookworm: libsisimai-perl 4.25.15-1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms