Skip to content
Advertisement

Python json to object from model

I know this looks like Frequency Ask Question mainly this question: How to convert JSON data into a Python object?

I will mention most voted answer:

JavaScript

Based on that answer, x is object. But it’s not object from model. I mean model that created with class. For example:

JavaScript

I’m asking this is simply because my autocompletion doesn’t work in my code editor if I don’t create model class. For example if I type dot after object, it will not show properties name.

Advertisement

Answer

This is how you can achieve that.

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement