logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Data::Printer::Profile::JSON - dump variables in JSON format

Caveats

       JSON is a super simple format that allows scalar, hashes and arrays. It doesn't support many types that
       could be present on Perl data structures, such as functions, globs and circular references. When printing
       those types, whenever possible, this module will stringify the result.

       Objects are also not shown, but their internal data structure is exposed.

       This module also attempts to render Regular expressions as plain JS regexes.  While not directly
       supported in JSON, it should be parseable.

Description

       This profile outputs your variables in JSON format. It's not nearly as efficient as a regular JSON
       module, but it may be useful, specially if you're changing the format directly in your .dataprinter.

Name

       Data::Printer::Profile::JSON - dump variables in JSON format

See Also

       Data::Printer JSON::MaybeXS>

perl v5.38.2                                       2024-04-27                  Data::Printer::Profile::JSON(3pm)

Synopsis

       While loading Data::Printer:

           use DDP profile => 'JSON';

       While asking for a print:

           p $var, profile => 'JSON';

       or in your ".dataprinter" file:

           profile = JSON

See Also