def json_file_with_valid_json_fixture(non_existent_temp_json_file, valid_json_content):
    """Pytest fixture which returns a random json file containing valid json data

    Args:
        non_existent_temp_json_file : Pytest fixture which returns a non-existent random json file.
        valid_json_content : Pytest fixture which returns valid JSON data as a string.

    Returns:
        [PosixPath]: Of a random json file containing valid json data.
    """
    json_file_with_valid_content = non_existent_temp_json_file
    with open(json_file_with_valid_content, "w") as f:
        f.write(valid_json_content)

    return json_file_with_valid_content