#NEWLINE# def write_json( self , outputdir , timestamp , items = None ) : #NEWLINE# #INDENT# path = os . path . join ( outputdir , self . filename ( 'json' , timestamp , ** self . filter_kwargs ) ) #NEWLINE# if ( items is None ) : #NEWLINE# #INDENT# items = self . get_items ( ) #NEWLINE# #UNINDENT# with open ( path , 'w' ) as f : #NEWLINE# #INDENT# f . write ( json . dumps ( items , default = json_util . default ) ) #NEWLINE# #UNINDENT# return self