in reply to Non JSON.pm solution for JSON

If you ignore the edge cases, JSON is drop-dead simple. I bet it'd take me maybe an hour to whip out a Tiny::JSON and it'd probably run significantly faster than the character-at-a-time state machine of JSON::PP. So do that. Then you can upload to CPAN.

- tye        

  • Comment on Re: Non JSON.pm solution for JSON (jfdi)

Replies are listed 'Best First'.
Re^2: Non JSON.pm solution for JSON (jfdi)
by Anonymous Monk on Feb 28, 2012 at 23:47 UTC
    Assuming JSON::Tiny is sound and works in rakudo, I bet it'd take you 10min to translate it to perl5 :)

      And I bet you didn't read the source code. On my way over to see it, I found that there are at least 3 files of it. Maybe there's a core of useful stuff that you can find in 10 minutes and throw the rest away (I found plenty to be thrown away before I stopped reading). Then you can upload to CPAN. :)

      - tye        

        And I bet you didn't read the source code...

        You lose, I did read it. Reads like Regexp::Grammar (or recdescent) with some simple Class declaration . I wouldn't be tempted to throw stuff away or upload to cpan :)