import codecs
import json


def read_as_json(in_filename, encoding='utf-8'):
    """Returnes the content of the JSON at the filepath `in_filename`."""
    with codecs.open(in_filename, 'r', encoding=encoding) as inpf:
        return json.load(inpf)