this option should probably be enabled by default since it can cause potential security issues when serializing user supplied data. to enable it you need to do:
use JSON -support_by_pp;
and then make sure escape_slash => 1 is set in the options passed into to_json.
escape_slash => 1
added a pull request. i didn't make this the default behavior since i'm not sure what the general dancer philosophy is about this.
is already committed: 3135001
can be closed
@mokko Thanks! :)