A stringify template helper for outputting JSON with escaped forward slashes and line terminators.