Hey everybody,

I'm currently trying to build an AJAX-JSON-processor with Django,
which receives a JSON-encoded request and then writes those values to
the database.

Here is what I basically looks like:

{"class":"pages.page",
        "id":"1",
        "show_more_on_topic":"0",
        "show_archive":"1",
        "title":"Homepage lala",
        "show_global_teasers":"1",
        "show_infos":"0",
        "show_keywords":"1",
        "show_next_dates":"0",
        "content":[{"class":"pages.leadcontainer",
        "id":"15",
        "type":"standard",
        "sortKey":"1",
        "leads":[{"class":"pages.lead",
        "id":"2",
        "headline":"value",
        "subline":"value",
        "anreisser-text":"Lorem ipsum dolor sit amet"},
        {"class":"pages.lead ..........

I already got it managed to create and save simple Django-objects and
setting their respective attributes. Now I would like to process the
collections that come inside of some of those JSON-arrays. I accessed
the simple attributes through the __dict__-array. Now I need a way to
access those collections and add/delete/recreate them.

How would I do that?

BTW: I know that there is a JSON-(de)serializer. But since in this
case Django shall be the backend of a more sophisticated AJAX-
interaction, I need a little more functionality than just saving and
serializing.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to