def METHOD_NAME(data):
    print("Filtering downloaded data")
    # Convert the output to JSON and use jq to filter data
    data_json = json.loads(data)
    filtered_data_json = jq('del(.amiibos[].release) | del(.characters)').transform(data_json)
    # Convert the filtered JSON data back to a string, preserving Unicode characters
    filtered_data = json.dumps(filtered_data_json, indent=2, ensure_ascii=False)
    return filtered_data