Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

merged branch ThatGuyBen/patch-1 (PR #1048)

This PR was merged into the master branch.

Discussion
----------

Update json_encode.rst

a more-useful description of the "options" argument >_>

Commits
-------

742043f Update json_encode.rst
  • Loading branch information...
commit 0f74ca8a4c99b604c1ae9583d7560a7cb91e6481 2 parents 3999169 + 742043f
@fabpot authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  doc/filters/json_encode.rst
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.