From: Ben Date: Mon, 1 Apr 2013 21:30:05 +0000 (-0300) Subject: Update json_encode.rst X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=742043f9e269696b85e89b693c1f526066f468a9;p=web%2Fkonrad%2Ftwig.git Update json_encode.rst a more-useful description of the "options" argument >_> --- diff --git a/doc/filters/json_encode.rst b/doc/filters/json_encode.rst index 374f519..d62fb93 100644 --- a/doc/filters/json_encode.rst +++ b/doc/filters/json_encode.rst @@ -14,6 +14,6 @@ The ``json_encode`` filter returns the JSON representation of a string: Arguments --------- - * ``options``: The options + * ``options``: A bitmask. See http://www.php.net/manual/en/json.constants.php for a list of possible values. Ex: ``{{ data|json_encode(JSON_PRETTY_PRINT) }}`` .. _`json_encode`: http://php.net/json_encode