def METHOD_NAME(kmalloc_addresses, blocks_with_kmalloc_call, parents, is_vulnerable):
    """Creates a results JSON file, for further use."""
    output_file = '/io/result.json'
    with open(output_file, '+w') as file:
        json.dump(
            {
                'kmalloc_addresses': [f.toString() for f in kmalloc_addresses],
                'kmalloc_basic_blocks': [b.getIndex() for b in blocks_with_kmalloc_call],
                'parent_blocks': parents,
                'is_vulnerable': is_vulnerable,
            },
            file,
        )
    os.chmod(output_file, 0o666)  # assure access rights to file created inside docker container