def mtl_to_json(mtl_text):
    """ Convert Landsat MTL file to dictionary of metadata values """
    mtl = {}
    for line in mtl_text.split('\n'):
        meta = line.replace('\"', "").strip().split('=')
        if len(meta) > 1:
            key = meta[0].strip()
            item = meta[1].strip()
            if key != "GROUP" and key != "END_GROUP":
                mtl[key] = item
    return mtl