How to inspect mystery deserialized object in Python
I'm trying to load JSON back into an object.  The "loads" method seems to work without error, but the object doesn't seem to have the properties I expect. 

How can I go about examining/inspecting the object that I have (this is web-based code). 

      results = {"Subscriber": {"firstname": "Neal", "lastname": "Walters"}}
      subscriber = json.loads(results)


	  for item in inspect.getmembers(subscriber): 
	     self.response.out.write("<BR>Item")
	     for subitem in item: 
	         self.response.out.write("<BR>&nbsp;SubItem=" + subitem)

The attempt above returned this: 

       Item
         SubItem=__class__


I don't think it matters, but for context: 
The JSON is actually coming from a urlfetch in Google App Engine to 
a rest web service created using this utility: 
http://code.google.com/p/appengine-rest-server. 
The data is being retrieved from a datastore with this definition: 

    class Subscriber(db.Model):
        firstname    = db.StringProperty()
        lastname     = db.StringProperty()

Thanks,
Neal


How to inspect mystery deserialized object in Python
===

I'm trying to load JSON back into an object.  The "loads" method seems to work without error, but the object doesn't seem to have the properties I expect. 

How can I go about examining/inspecting the object that I have (this is web-based code). 

      results = {"Subscriber": {"firstname": "Neal", "lastname": "Walters"}}
      subscriber = json.loads(results)


	  for item in inspect.getmembers(subscriber): 
	     self.response.out.write("<BR>Item")
	     for subitem in item: 
	         self.response.out.write("<BR>&nbsp;SubItem=" + subitem)

The attempt above returned this: 

       Item
         SubItem=__class__


I don't think it matters, but for context: 
The JSON is actually coming from a urlfetch in Google App Engine to 
a rest web service created using this utility: 
http://code.google.com/p/appengine-rest-server. 
The data is being retrieved from a datastore with this definition: 

    class Subscriber(db.Model):
        firstname    = db.StringProperty()
        lastname     = db.StringProperty()

Thanks,
Neal

