Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
620hun83707yJsonResponse is a special http response that accepts JSON input. json.dumps will convert python types to json, serializers do the same under the hood, but based on how you configure them. Most of the time it's worth having a look at how at the source code to see what they actually do. The source code is your second best place to look when something is unclear 😉
-
Orionss28977y@620hun I don't know why but I can't find the patience to look into a source code. I feel always totally lost and I give up quickly
-
chadd1746437yI worked on mantidproject/webapp which used Django serializers. Maybe you can find something useful in there.
Related Rants
It's sad because Django is a really great framework, but I can't understand how their serializers work.
I finally tricked to make my own using JsonResponse and alternatives methods, but I can't see why there is "serializers", "DjangoJSONEncoder", "JsonResponse", "json.dumps" and so on...
The documentation doesn't explain much about it :/
undefined
serialization
django
python