import json


def loadjson(file_path, encoding='utf8', **kwargs):
    """JSON version of loadtxt
    Return:
    json data as Python object

    Keyword arguments:
    encoding: file encoding
    """
    with open(file_path, 'r') as infile:
        obj = json.load(infile, encoding=encoding, **kwargs)
    return obj