#NEWLINE# @ classmethod #NEWLINE# def load_json( cls , data , default_rule = None ) : #NEWLINE# #INDENT# 'Allow loading of JSON rule data.' #NEWLINE# rules = dict ( ( ( k , parse_rule ( v ) ) for ( k , v ) in jsonutils . loads ( data ) . items ( ) ) ) #NEWLINE# return cls ( rules , v )