schema json in oython

38

import json

def validateJSON(jsonData):
    try:
        json.loads(jsonData)
    except ValueError as err:
        return False
    return True

Comments

Submit
0 Comments