You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR was merged into the 7.3 branch.
Discussion
----------
[JsonEncoder] Remove chunk size definition
| Q | A
| ------------- | ---
| Branch? | 7.3
| Bug fix? | no
| New feature? | yes
| Deprecations? | no
| Issues |
| License | MIT
Remove the `$forceEncodeChunks` boolean.
This boolean was telling if the encoder should use `json_encode` or should yield as small strings as possible.
It was set to `false` by default and not easily configurable yet.
This configurable behavior has been removed.
Instead, we use `json_encode` directly if **the value that does not contain any object**. Otherwise, it'll be split (see the diff in `src/Symfony/Component/JsonEncoder/Tests/Fixtures/encoder/object_in_object.php`)
IMHO, this will fit most of the use cases, and remove a configuration complicated to understand.
Commits
-------
86274994ff [JsonEncoder] Remove chunk size definition
0 commit comments