def is_json()

in lambda/source/utils.py [0:0]


def is_json(file):
    with open(file, 'r') as stream:
        try:
            json.loads(stream)
            return True
        except Exception as e:
            return False