Check your json script, under the heading Syntax.
Quote:
$json.enc(<URL>)
Encodes a URL. Uses JavaScript's encodeURI().