# 
# Author    : Manuel Bernal Llinares
# Project   : trackhub-creator
# Timestamp : 28-06-2017 11:03
# ---
# © 2017 Manuel Bernal Llinares <mbdebian@gmail.com>
# All rights reserved.
# 

"""
This module implements some useful functions for the pipeline runner
"""


# 
# Author    : Manuel Bernal Llinares
# Project   : trackhub-creator
# Timestamp : 28-06-2017 11:03
# ---
# © 2017 Manuel Bernal Llinares <mbdebian@gmail.com>
# All rights reserved.
# 

"""
This module implements some useful functions for the pipeline runner
"""

import json


def read_json(json_file="json_file_not_specified.json"):
	"""
	Reads a json file and it returns its object representation, no extra checks
	are performed on the file so, in case anything happens, the exception will
	reach the caller
	:param json_file: path to the file in json format to read
	:return: an object representation of the data in the json file
	"""
	with open(json_file) as jf:
		return json.load(jf)

read json formatted file into its object representation