def parse_list ( cls , api , json_list ) : results = [ ] for json_obj in json_list : if json_obj : obj = cls . parse ( api , json_obj ) results . append ( obj ) return results
python json list to object
Parse a list of JSON objects into a result set of model instances .
def parse_list(cls, api, json_list):
        """
            Parse a list of JSON objects into
            a result set of model instances.
        """
        results = []
        for json_obj in json_list:
            if json_obj:
                obj = cls.parse(api, json_obj)
                results.append(obj)

        return results