I am sending information between client and Django server, and I would like to use JSON to this. I am sending simple information - list of strings. I tried using django.core.serializers
, but when I did, I got
AttributeError: 'str' object has no attribute '_meta'
It seems this can be used only for Django objects. How can I serialize simple, Python objects?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…