Skip to content

Prevent object to JSON encode in App#1993

Merged
mvorisek merged 2 commits intodevelopfrom
no_object_to_json
Feb 7, 2023
Merged

Prevent object to JSON encode in App#1993
mvorisek merged 2 commits intodevelopfrom
no_object_to_json

Conversation

@mvorisek
Copy link
Copy Markdown
Member

@mvorisek mvorisek commented Feb 7, 2023

json_encode encodes public properties of an object only, encoding an object is often a mistake so better to catch it

in the future, if needed, we can support encode of objects implementing JsonSerializable interface, but as JsExpression does not implement such interface, it was never supported by atk4/ui, thus also I do not expect any BC break from this PR

@mvorisek mvorisek marked this pull request as ready for review February 7, 2023 10:03
@mvorisek mvorisek merged commit ff872df into develop Feb 7, 2023
@mvorisek mvorisek deleted the no_object_to_json branch February 7, 2023 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant