Log in

No account? Create an account

Wed, Feb. 13th, 2008, 09:34 am
Anytime, anyplace, anywhere

There are tonnes of JSON modules on CPAN. Why do it one way right when you can do it a hundred ways wrong? JSON::Any mitigates some of these problems by abstracting away the interface so that you can use JSON, JSON::XS, JSON::Syck, JSON::DWIM ...

Annoyingly JSON::XS completely changed its API between versions 1 and 2. JSON::Any dropped support for JSON::XS 1.x and now only supports 2.x.

Until now. This patch feels somewhat dirty but, meh, what the hell, it works.

Wed, Feb. 13th, 2008 03:50 pm (UTC)


Wed, Feb. 13th, 2008 04:06 pm (UTC)

Simon, have you met my friend Leon?

Wed, Feb. 13th, 2008 06:37 pm (UTC)
(Anonymous): Did I forget to mention Patches Welcome?

Now I distinctly remember saying at the time (http://use.perl.org/articles/07/12/21/0113225.shtml) that I would change this if someone complained to me. I believe this is to say "patches welcome" ... your code may appear in the next version.


Wed, Feb. 13th, 2008 09:21 pm (UTC)
deflatermouse: Re: Did I forget to mention Patches Welcome?

Sorry, this wasn't supposed to be a bitch - I understand totally the reasons why you did what you did. My patch is a little bit icky after all.

The patch was also always meant to wing its way but I ran out of time. It's now on rt.cpan.org as a Wishlist item.