schema json in oython

33

import json

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

Comments

Submit
0 Comments