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(..) #474

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)`.
@mtrea mtrea self-requested a review March 19, 2024 15:15
@mtrea mtrea self-assigned this Mar 19, 2024
@mtrea mtrea merged commit ce5e6d6 into bazelbuild:master Mar 19, 2024
2 checks passed
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