NAME

Data::CleanJSON - Clean data so it is safe to output to JSON

VERSION

This document describes version 0.002 of Data::CleanJSON (from Perl distribution Data-CleanJSON), released on 2017-01-03.

SYNOPSIS

use Data::CleanJSON qw(clean_json_in_place clone_and_clean_json);

clean_json_in_place($data);
$cleaned = clone_and_clean_json($data);

DESCRIPTION

This has the same functionality as Data::Clean::JSON except that the code to perform the cleaning is pre-generated, so we no longer need Data::Clean> during runtime.

FUNCTIONS

None of the functions are exported by default.

clean_json_in_place($data)

clone_and_clean_json($data) => $cleaned

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Data-CleanJSON.

SOURCE

Source repository is at https://github.com/perlancar/perl-Data-CleanJSON.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Data-CleanJSON

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

SEE ALSO

Data::Clean::JSON

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.