def RenderJson(self, pretty=False):
steps = self._steps<EOL>topdict = {}<EOL>topdict['<STR_LIT>'] = steps<EOL>if pretty:<EOL><INDENT>try:<EOL><INDENT>json = jsonlib.dumps(topdict, indent=<NUM_LIT:4>, sort_keys=False)<EOL><DEDENT>except TypeError:<EOL><INDENT>json = jsonlib.dumps(topdict)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>json = jsonlib.dumps(topdict)<EOL><DEDENT>return json<EOL>
Render a Tropo object into a Json string.