def jsonRender(self, def_buf):
try:<EOL><INDENT>ret_dict = SerialBlock()<EOL>ret_dict[Field.Meter_Address] = self.getMeterAddress()<EOL>for fld in def_buf:<EOL><INDENT>compare_fld = fld.upper()<EOL>if not "<STR_LIT>" in compare_fld and not "<STR_LIT>" in compare_fld:<EOL><INDENT>ret_dict[str(fld)] = def_buf[fld][MeterData.StringValue]<EOL><DEDENT><DEDENT><DEDENT>except:<EOL><INDENT>ekm_log(traceback.format_exc(sys.exc_info()))<EOL>return "<STR_LIT>"<EOL><DEDENT>return json.dumps(ret_dict, indent=<NUM_LIT:4>)<EOL>
Translate the passed serial block into string only JSON.

        Args:
            def_buf (SerialBlock): Any :class:`~ekmmeters.SerialBlock` object.

        Returns:
            str: JSON rendering of meter record.