From 481abb83323f4dcabadc9292b0e9f104df0719de Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Mon, 8 Apr 2013 14:11:21 +0200 Subject: [PATCH] tweaked previous merge --- doc/filters/json_encode.rst | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/doc/filters/json_encode.rst b/doc/filters/json_encode.rst index d62fb93..a33fef1 100644 --- a/doc/filters/json_encode.rst +++ b/doc/filters/json_encode.rst @@ -14,6 +14,8 @@ The ``json_encode`` filter returns the JSON representation of a string: Arguments --------- - * ``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) }}`` + * ``options``: A bitmask of `json_encode options`_ (``{{ + data|json_encode(constant(JSON_PRETTY_PRINT)) }}``) .. _`json_encode`: http://php.net/json_encode +.. _`json_encode options`: http://www.php.net/manual/en/json.constants.php -- 1.7.2.5