#!/usr/bin/env python import json import jsonschema with open('data.json') as datafp: data = json.load(datafp) with open('schema.json') as schemafp: schema = json.load(schemafp) if jsonschema.validate(data, schema) is None: print("Validated!")