#NEWLINE# def printjsonobject( x , indent , level ) : #NEWLINE# #INDENT# x = getjson ( x ) #NEWLINE# ret = '' #NEWLINE# maxKeyLength = 0 #NEWLINE# for k in x . keys ( ) : #NEWLINE# #INDENT# maxKeyLength = max ( maxKeyLength , len ( k ) ) #NEWLINE# #UNINDENT# for ( k , v ) in x . items ( ) : #NEWLINE# #INDENT# ret += ( ( ( '\n' + ( indent * k ) ) + printColor ( ( k + ': ' ) . ljust ( ( maxKeyLength + 2 ) ) , 'cyan' ) ) + printjson ( v , indent , ( level + 1 ) ) ) #NEWLINE# #UNINDENT# return ret