in reply to JSON parser as a single Perl Regex
With due respect, I admit that this hack is cool and a source of great learning experience for others.
However, I have to ask: what is the client's requirement, to be more exact? Prior to the time of this post, there had already been JSON::PP and Mojo::JSON (which became JSON::Tiny in Oct 2012) on CPAN. They are both faster than this regex version, already support Unicode, and I suspect have smaller footprint also. JSON::PP is also much preferable to me because it gives helpful error message instead of just returning undef or die-ing with 'no match'. You can just stick either in the project source repo and be done with it in a couple of minutes.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: JSON parser as a single Perl Regex
by davido (Cardinal) on Oct 19, 2013 at 06:34 UTC | |
by sedusedan (Monk) on Oct 19, 2013 at 10:39 UTC | |
Re^2: JSON parser as a single Perl Regex
by merlyn (Sage) on Oct 18, 2013 at 15:17 UTC | |
by sedusedan (Monk) on Oct 19, 2013 at 03:38 UTC | |
by merlyn (Sage) on Oct 22, 2013 at 19:57 UTC |
In Section
Cool Uses for Perl