-
Notifications
You must be signed in to change notification settings - Fork 487
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
Breaking Changes in version 10.0.0 #400
Comments
How could I convert Object to JSON?
|
Hi @Rukeith - that functionality exists on the constructor class for each message, you can access it like this: campaign = client.get_type("Campaign")
json = type(campaign).to_json(campaign)
campaign = type(campaign).from_json(json) |
@BenRKarl
|
Asking here since others finding this question may also run into the same issue and it's not stated above or in your docs that I can find... Is there an equivalent to
But with the following the resulting format is different (camel case instead of snake case at a minimum, unclear if anything else changed yet as I'm just starting this wonderful journey):
Thanks. EDIT: after finding a discussion that points to this change I found the
|
@totalhack you can always access the corresponding protobuf message on a proto-plus message, so you can continue to use dict_row = MessageToDict(type(row).pb(row), preserving_proto_field_name=True) That should give you the desired result. |
Version 10.0.0 of this library introduces a number of interface improvements that are not backwards compatible. For details please see our migration guide.
The text was updated successfully, but these errors were encountered: