Skip to content

Instantly share code, notes, and snippets.

@jzawodn
Created November 7, 2014 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jzawodn/8cc6365e8bcecba9b0bb to your computer and use it in GitHub Desktop.
Save jzawodn/8cc6365e8bcecba9b0bb to your computer and use it in GitHub Desktop.
override Mojo's JSON::XS::encode_json with JSON::XS
sub xs_encode_json {
JSON::XS::encode_json $_[1];
}
{
no warnings;
*Mojo::JSON::encode = \&xs_encode_json;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment