hi im new to google appengine and webapp framework

i have a model

class Category(db.model):
   name = db.StringProperty()

i want to get all the entries in this model as json
im using demjson

i want it like this

{
    categories_num: 15 (number of categories)
    categories: {
                       1: {
                          name: "automobile";
                          id : "13",
                           }

                       2: {
                          name: "another";
                          id : "2",
                          }
                     }
}

how can i get this??

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to