The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

PERLANCAR::JSON::Match - Match JSON string using regex

VERSION

This document describes version 0.02 of PERLANCAR::JSON::Match (from Perl distribution PERLANCAR-JSON-Match), released on 2016-02-18.

SYNOPSIS

 use PERLANCAR::JSON::Match qw(match_json);
 print "Data is JSON" if match_json($data);

DESCRIPTION

This module is basically just JSON::Decode::Regexp with all the embedded Perl code removed. So the regexp cannot build decoded JSON and can only match instead. Used for testing/benchmarking only.

FUNCTIONS

match_json($str) => bool

Match JSON in $str. Return true if input is a valid JSON, false otherwise.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/PERLANCAR-JSON-Match.

SOURCE

Source repository is at https://github.com/perlancar/perl-PERLANCAR-JSON-Match.

BUGS

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

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

JSON::Decode::Regexp

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 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.