Skip to content

Commit c96e1b0

Browse files
committed
docs: added options jsonDepthOptions to json formatter
1 parent 8244a7c commit c96e1b0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

user_guide_src/source/changelogs/v4.7.0.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ Changes
8585
*******
8686

8787
- **Cookie:** The ``CookieInterface::EXPIRES_FORMAT`` has been changed to ``D, d M Y H:i:s \G\M\T`` to follow the recommended format in RFC 7231.
88+
- **Format:** The ``Format::$jsonDepthOptions`` options to change default behavior JSON Encode.
8889

8990
************
9091
Deprecations

user_guide_src/source/outgoing/api_responses.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ format both XML and JSON responses:
4949

5050
.. literalinclude:: api_responses/003.php
5151

52+
.. note:: Since ``v4.7.0``, you can change the default JSON formatting depth by editing **app/Config/Format.php**. The ``$jsonDepthOptions`` value defines the maximum depth, with a default of ``512``.
53+
5254
This is the array that is used during :doc:`Content Negotiation </incoming/content_negotiation>` to determine which
5355
type of response to return. If no matches are found between what the client requested and what you support, the first
5456
format in this array is what will be returned.

0 commit comments

Comments
 (0)