NAME
   JSON::Decode::Regexp - JSON parser as a single Perl Regex

VERSION
   This document describes version 0.101 of JSON::Decode::Regexp (from Perl
   distribution JSON-Decode-Regexp), released on 2018-03-25.

SYNOPSIS
    use JSON::Decode::Regexp qw(from_json);
    my $data = from_json(q([1, true, "a", {"b":null}]));

DESCRIPTION
   This module is a packaging of Randal L. Schwartz' code (with some
   modification) originally posted at:

    http://perlmonks.org/?node_id=995856

   The code is licensed "just like Perl".

FUNCTIONS
 from_json($str) => DATA
   Decode JSON in $str. Dies on error.

FAQ
 How does this module compare to other JSON modules on CPAN?
   As of version 0.04, performance-wise this module quite on par with
   JSON::PP (faster on strings and longer arrays/objects, slower on simpler
   JSON) and a bit slower than JSON::Tiny. And of course all three are much
   slower than XS-based modules like JSON::XS.

   JSON::Decode::Regexp does not yet support Unicode, and does not pinpoint
   exact location on parse error.

   In general, I don't see a point in using it in production (I recommend
   instead JSON::XS or Cpanel::JSON::XS if you can use XS modules, or
   JSON::Tiny if you must use pure Perl modules). But it is a cool hack
   that demonstrates the power of Perl regular expressions and beautiful
   code.

HOMEPAGE
   Please visit the project's homepage at
   <https://metacpan.org/release/JSON-Decode-Regexp>.

SOURCE
   Source repository is at
   <https://github.com/perlancar/perl-JSON-Decode-Regexp>.

BUGS
   Please report any bugs or feature requests on the bugtracker website
   <https://rt.cpan.org/Public/Dist/Display.html?Name=JSON-Decode-Regexp>

   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
 Other modules to decode JSON
   Pure-perl modules: JSON::Tiny, JSON::PP, Pegex::JSON,
   JSON::Decode::Marpa.

   XS modules: JSON::XS, Cpanel::JSON::XS.

 Other modules related to regexps for parsing JSON
   Regexp::Pattern::JSON

   Regexp::Common::json

AUTHOR
   perlancar <[email protected]>

COPYRIGHT AND LICENSE
   This software is copyright (c) 2018, 2016, 2013 by [email protected].

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