Commit 63ae307
committed
feature #59254 [JsonEncoder] Remove chunk size definition (mtarld)
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 definition1 file changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| |||
113 | 112 | | |
114 | 113 | | |
115 | 114 | | |
116 | | - | |
117 | 115 | | |
118 | 116 | | |
119 | 117 | | |
| |||
0 commit comments