def get_json_from_feed(user_feed):
 json = []
 for entry in user_feed.entry:
  json.append({'given_name': entry.name.given_name, 'family_name': entry.name.family_name, 'username': entry.login.user_name, 'admin': entry.login.admin})
 return simplejson.dumps(json)

def get_json_from_feed ( user_feed ) : json = [ ] for entry in user_feed . entry : json . append ( { 'given_name' : entry . name . given_name , 'family_name' : entry . name . family_name , 'username' : entry . login . user_name , 'admin' : entry . login . admin } ) return simplejson . dumps ( json )
constructs and returns a json object from the given feed object args: user_feed: a gdata .