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

Replace instances of to_json() method with json.encode(..) #1180

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

c-mita
Copy link
Member

@c-mita c-mita commented Mar 19, 2024

The to_json and to_proto methods on struct are deprecated and will be
removed. The "json" and "proto" builtin modules should be used instead.

This replaces instances of foo.to_json() with json.encode(foo).

The to_json and to_proto methods on struct are deprecated and will be
removed. The "json" and "proto" builtin modules should be used instead.

This replaces instances of `foo.to_json()` with `json.encode(foo)`.
@brentleyjones brentleyjones merged commit 380d040 into bazelbuild:master Mar 19, 2024
15 checks passed
@brentleyjones
Copy link
Collaborator

Thanks @c-mita!

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.

2 participants