Mojo::JSON::Any

While there is always Mojo::JSON out there, sometimes we need more speed. JSON::XS is the first thing that comes to mind. But they not only have different interfaces, but also work different with encodings.

So here is Mojo::JSON::Any, a tiny wrapper around JSON::XS that has the same interface and works exactly the same as Mojo::JSON with encodings. The tests suite is almost identical.

Mojo::JSON::Any follows the same phylosophie as all Any modules on CPAN do. When no JSON::XS is available, Mojo::JSON is used. When JSON::XS is available but it use is not desirable MOJO_JSON variable can be set to fall back to using Mojo::JSON. If no variable is set and JSON::XS is available then it is used.

Git repository is on github http://github.com/vti/mojo-json-any.

Comments

blog comments powered by Disqus