#NEWLINE# def main( self , folder , field_name , raw = False , formatted = False ) : #NEWLINE# #INDENT# data = self . get_field_value_by_dotpath ( folder , field_name , raw , formatted ) #NEWLINE# if isinstance ( data , ( list , dict ) ) : #NEWLINE# #INDENT# kwargs = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if formatted : #NEWLINE# #INDENT# kwargs = { #NEWLINE# #INDENT# 'indent' : 4 , #NEWLINE# 'sort_keys' : True , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# data = json . dumps ( data , ** kwargs ) #NEWLINE# #UNINDENT# return data