Sisima...a::JSON(3pm)

πŸ“¦
version 4.25.15 Β· 2 versions
, in debian bookworm

✨ 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 (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