#NEWLINE# def to_json( self , indent = 4 , **extra_kwargs ) : #NEWLINE# #INDENT# ' Convert paramters to a JSON-encoded string ' #NEWLINE# obj = { k : getattr ( self , k ) for k in IntrinsicParameters . ALL_PARAMS } #NEWLINE# if extra_kwargs : #NEWLINE# #INDENT# obj . update ( extra_kwargs ) #NEWLINE# #UNINDENT# return json . dumps ( obj , sort_keys = True , indent = indent )