code: def internal_get_variable_json(py_db, request):
      '''
          :param VariablesRequest request:
      '''
      arguments = request.arguments  # : :type arguments: VariablesArguments
      variables_reference = arguments.variablesReference
      fmt = arguments.format
      if hasattr(fmt, 'to_dict'):
          fmt = fmt.to_dict()
  
      variables = []
      try:
          variable = py_db.suspended_frames_manager.get_variable(variables_reference)
      except KeyError:
          pass
      else:
          for child_var in variable.get_children_variables(fmt=fmt):
              variables.append(child_var.get_var_data(fmt=fmt))
  
      body = VariablesResponseBody(variables)
      variables_response = pydevd_base_schema.build_response(request, kwargs={'body':body})
      py_db.writer.add_command(NetCommand(CMD_RETURN, 0, variables_response, is_json=True)f internal_get_variable_json(py_db, request):
      '''
          :param VariablesRequest request:
      '''
      arguments = request.arguments  # : :type arguments: VariablesArguments
      variables_reference = arguments.variablesReference
      fmt = arguments.format
      if hasattr(fmt, 'to_dict'):
          fmt = fmt.to_dict()
  
      variables = []
      try:
          variable = py_db.suspended_frames_manager.get_variable(variables_reference)
      except KeyError:
          pass
      else:
          for child_var in variable.get_children_variables(fmt=fmt):
              variables.append(child_var.get_var_data(fmt=fmt))
  
      body = VariablesResponseBody(variables)
      variables_response = pydevd_base_schema.build_response(request, kwargs={'body':body})
      py_db.writer.add_command(NetCommand(CMD_RETURN, 0, variables_response, is_json=True))
docs: :param VariablesRequest request: