def _json_to_categories(response_body):
    """
    Returns a list of Category objects
    """
    data = json.loads(response_body)
    categories = []
    for category_data in data.get("categoryList", []):
        categories.append(Category().from_json(
            data.get('uwNetID'), category_data))

    return categories
def _json_to_categories ( response_body ) : data = json . loads ( response_body ) categories = [ ] for category_data in data . get ( "categoryList" , [ ] ) : categories . append ( Category ( ) . from_json ( data . get ( 'uwNetID' ) , category_data ) ) return categories
Returns a list of Category objects