import json


def read_ij_intensity (file):
    """Read a file that was written by the save_background.py ImageJ script.
    
    Args:
        file (str): Full path to .json file written by save_background.py
        
    Returns:
        intensity_data (dict): All data stored in the data file     
    """
    with open(file) as data_file:    
        intensity_data = json.load(data_file)
    
    return intensity_data