jsonify function when invoked as follows: {{- $.Scratch.Get "index" | jsonify -}} produces an unminified output (Example here, generated with the code below). There ought to be a minification option (by invoking https://golang.org/pkg/encoding/json/#Compact ?)
jsonify produces minified output. the one who left all those whitespaces are your template.
you can add extra dash - to each template delimiter {{- and -}}.