def get_json_drivers(): """Get all drivers (JSON)""" response.content_type = 'application/json' return json.dumps([ob.__dict__ for ob in collection.drivers])