':param result_dict: a dictionary containing the result, error, traceback
and id.
:return: translated json result'

@staticmethod
def translateResult(result_dict):

    if (result_dict['err'] is not None):
        error_name = result_dict['err'].__class__.__name__
        result_dict['err'] = {'name': error_name, 'message': str(result_dict['err']), 'traceback': result_dict['err_traceback']}
        result_dict['result'] = None
    try:
        json_dict = {'result': result_dict['result'], 'id': result_dict['id'], 'error': result_dict['err']}
        data = json_encoder.encode(json_dict)
    except TypeError as e:
        err_traceback = traceback.format_exc()
        print err_traceback
        err = {'name': 'JSONEncodeException', 'message': 'Result    Object    Not    Serializable', 'traceback': err_traceback}
        data = json_encoder.encode({'result': None, 'id': result_dict['id'], 'error': err})
    return data
