On 4/4/07, Wolfram Kriesing <[EMAIL PROTECTED]> wrote: > > I have summarized the problems I had with django's json serializer > here > http://wolfram.kriesing.de/blog/index.php/2007/json-serialization-for-django > i would be very interested if I might be doing something completely > wrong or if those are reall life problems other people have too. If so > I would be interested to know if the suggested solution is relevant > for django or if there are other solutions in sight?
Repeating my reply on the blog, for the benefit of this mailing list: Thanks for the feedback on the serializers, Wolfram. Regarding your three issues: 1 - The issue of additional properties has been proposed previously (ticket #3661), and has been rejected. The Django serializers are intended for serializing Django objects. If you want to serialize other structures (including dictionaries of arbitrary key-value pairs), you can easily use the SimpleJSON interface, which is included as part of Django (from django.utils import simplejson) 2 - The decimal issue is a known problem (ticket #3324); the fix isn't completely trivial, and is problematic when you are trying to support Python versions back to v2.3. Bug-free support for the Decimal type is on the list of things to do; we just need to get around to it. 3 - We have a large number of unit tests that validate that ForeignKeys can be serialized and deserialized without difficulty. Of course, it is possible that we have missed a test case - if you have a specific example that is failing, let us know. The meta-data in the serialization is there for de-serialization purposes; without this information, it would not be possible to return serialized objects to the database. Yours, Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---
