def timestamping_validate ( data , schema ) : jsonschema . validate ( data , schema ) data [ 'timestamp' ] = str ( time . time ( ) )
json supported timstamp in python
Custom validation function which inserts a timestamp for when the validation occurred
def timestamping_validate(data, schema):
    """
    Custom validation function which inserts a timestamp for when the
    validation occurred
    """
    jsonschema.validate(data, schema)
    data['timestamp'] = str(time.time())