Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Non JSON.pm solution for JSON (jfdi)

by tye (Sage)
on Feb 28, 2012 at 23:43 UTC ( [id://956799]=note: print w/replies, xml ) Need Help??


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 :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://956799]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-25 16:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found