I am not sure I understand what you mean by " write the models to work with 
the serializers".  A model is there primarily for data storage and its 
possible to store JSON in a field of such a model.  Any "business logic" 
for the model is just Python and can carry out, for example, processing 
operations on the JSON data.

For more on JSON operations and JSON fields with databases, have a look at:

http://www.lexev.org/en/2015/trying-json-combo-django-and-postgresql/
https://www.laurencegellert.com/2018/09/django-tricks-for-processing-and-storing-json/

for some useful examples.

P.S. If you are working with current versions of Python and Django, you 
should not yet be in the position to need any shim.


On Sunday, 30 June 2019 03:47:38 UTC+2, David Elphee wrote:
>
> Hello,
> I am new at django and in over my head I think.  I am trying to create a 
> kind of shim that will accept JSON from a webhook POST, work with the data 
> using Python, and then POST some new JSON to another API.  I have 
> successfully worked through tutorials that have "flat" data, and I have 
> looked at the documentation on serializing nested data, but I don't see how 
> to write the models to work with the serializers.  Does anyone know of a 
> tutorial that demonstrates working with nested dictionaries?
> Thank you,
> Dave E.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/90e5786d-e674-44cd-ab47-3107232abdcd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to