import json
import traceback


def get_json_from_file(json_file):
    """
        Reads and returns a JSON file as an dictionary object.

            Parameters:
                json_file (string): path to json file

            Returns:
                json_object (dictionary): json dictionary
    """
    try:
        with open(json_file) as json_file_object:
            return json.load(json_file_object)
    except Exception:
        print(traceback.format_exc())