Devel::...O::JSON(3)

🌸 NAME 🌸

okay so bestie, this is Devel::Cover::DB::IO::JSON β€” literally the JSON based IO routines for Devel::Cover::DB. The manual page header is out here calling it Devel::...O::JSON(3), iykyk, but the full module name is right there in the NAME section. slay.

✨ VERSION ✨

version 1.50 β€” periodt, that's the one.

πŸŽ€ SYNOPSIS πŸŽ€

use Devel::Cover::DB::IO::JSON;

my $io = Devel::Cover::DB::IO::JSON->new;
my $data = $io->read($file);
$io->write($data, $file);

like, that's the whole vibe: make an IO object, read from a file, write back to a file. iconic.

πŸ¦‹ DESCRIPTION πŸ¦‹

This module provides JSON based IO routines for Devel::Cover::DB. no cap, that's the description and it ate.

🌈 SEE ALSO 🌈

  • Devel::Cover
  • JSON::MaybeXS

go check those out too, bestie 🫢

πŸ’… METHODS πŸ’…

🌟 new 🌟

my $io = Devel::Cover::DB::IO::JSON->new;

Constructs the IO object. that's it, that's the method β€” main character energy only.

⭐ read ⭐

my $data = $io->read($file);

Returns a perl data structure representing the data read from $file. literally the read step, doing exactly what it says on the tin.

πŸ“ write πŸ“

$io->write($data, $file);

Writes $data to $file in the format specified when creating $io. yes bestie, the format comes from when you made the $io object β€” keep that in mind.

πŸ’€ BUGS πŸ’€

Huh?

that's the whole bugs section. not me staring at it. πŸ’€

πŸ‘‘ LICENCE πŸ‘‘

Copyright 2011-2025, Paul Johnson (paul@pjcj.net).

This software is free. It is licensed under the same terms as Perl itself.

The latest version of this software should be available from my homepage: https://pjcj.net


okay bestie, cute sign-off time: this page is giving perl v5.42.0, dated 2025-06-11, with the manual tag Devel::...O::JSON(3). mwah πŸ’–βœ¨

πŸ“¦ where this page comes from