Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 definition
- Loading branch information