http://qs1969.pair.com?node_id=996613


in reply to JSON parser as a single Perl Regex

How do you use this script?

I tried feeding it various .json files and it always prints 'no match'; and frequently consumes all my 8 gig of memory first.

Replies are listed 'Best First'.
Re^2: JSON parser as a single Perl Regex
by merlyn (Sage) on Oct 10, 2012 at 03:39 UTC
    Worked for me. Give me an example of a one-line file that broke.

    -- Randal L. Schwartz, Perl hacker

    The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.