Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent object to JSON encode in App #1993

Merged
merged 2 commits into from
Feb 7, 2023
Merged

Prevent object to JSON encode in App #1993

merged 2 commits into from
Feb 7, 2023

Conversation

mvorisek
Copy link
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant