1Test2::Harness::Util::FUisleer::CJoSnOtNr(i3b)uted PerlTDeosctu2m:e:nHtaartnieosns::Util::File::JSON(3)
2
3
4

NAME

6       Test2::Harness::Util::File::JSON - Utility class for a JSON file.
7

DESCRIPTION

9       Subclass of Test2::Harness::Util::File which automatically handles
10       encoding/decoding JSON data.
11

SYNOPSIS

13           require Test2::Harness::Util::File::JSON;
14           my $file = Test2::Harness::Util::File::JSON->new(name => '/path/to/file.json');
15
16           $hash = $file->read;
17           # or
18           $$file->write({...});
19

SEE ALSO

21       See the base class Test2::Harness::Util::File for methods.
22

SOURCE

24       The source code repository for Test2-Harness can be found at
25       http://github.com/Test-More/Test2-Harness/.
26

MAINTAINERS

28       Chad Granum <exodist@cpan.org>
29

AUTHORS

31       Chad Granum <exodist@cpan.org>
32
34       Copyright 2020 Chad Granum <exodist7@gmail.com>.
35
36       This program is free software; you can redistribute it and/or modify it
37       under the same terms as Perl itself.
38
39       See http://dev.perl.org/licenses/
40
41
42
43perl v5.34.1                      2022-07-11Test2::Harness::Util::File::JSON(3)
Impressum