#NEWLINE# def load( self , file_obj , **kwargs ) : #NEWLINE# #INDENT# data = json . load ( file_obj , ** kwargs ) #NEWLINE# count = 0 #NEWLINE# for row in data : #NEWLINE# #INDENT# if self . strict : #NEWLINE# #INDENT# obj = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for key in row : #NEWLINE# #INDENT# field = self . columns . get ( key ) #NEWLINE# if ( field is not None ) : #NEWLINE# #INDENT# obj [ field . name ] = field . python_value ( row [ key ] ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# obj = row #NEWLINE# #UNINDENT# if obj : #NEWLINE# #INDENT# self . table . insert ( ** obj ) #NEWLINE# count += 1 #NEWLINE# #UNINDENT# #UNINDENT# return count