@classmethod
def prepare_json(cls, data_class, json_dict):
    """Prepares json for the data class."""
    attribute_dict = data_class.attribute_guide
    output = {}
    for key in attribute_dict:
        actual_dict = key.split(',')
        try:
            out = json_dict
            for level in actual_dict:
                out = out[level]
        except KeyError:
            output[attribute_dict[key][0]] = None
        else:
            output[attribute_dict[key][0]] = attribute_dict[key][1](out)
    return output
