We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
class Class1(pykson.JsonObject): variable_1 = pykson.IntegerField(default_value=1) class Class2(Class1): variable_2 = pykson.IntegerField(default_value=2) class Class3(Class2): variable_3 = pykson.IntegerField(default_value=3) class Class4(Class3): variable_4 = pykson.IntegerField(default_value=4) class_4 = Class4() print(Pykson().to_json(class_4))
The following code returns: {"variable_4": 4, "variable_3": 3, "variable_2": null, "variable_1": null}
{"variable_4": 4, "variable_3": 3, "variable_2": null, "variable_1": null}
The text was updated successfully, but these errors were encountered:
JsonObjectMeta: Run __get_fields for each base class
4542baa
Fix sinarezaei#15 Signed-off-by: Patrick José Pereira <[email protected]>
196cda7
pykson: JsonObjectMeta: Run __get_fields for each base class
d14fa84
Successfully merging a pull request may close this issue.
The following code returns:
{"variable_4": 4, "variable_3": 3, "variable_2": null, "variable_1": null}
The text was updated successfully, but these errors were encountered: