MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / send_json

Method send_json

examples/API Test/test_api.py:360–365  ·  view source on GitHub ↗
(self, obj: dict)

Source from the content-addressed store, hash-verified

358 return None
359
360 def send_json(self, obj: dict) -> Optional[dict]:
361 data = json.dumps(obj, separators=(",", ":")) + "\n"
362 expected_id = obj.get("id")
363 return self.send_raw(
364 data.encode("utf-8"), expected_id=expected_id, timeout=SOCKET_TIMEOUT
365 )
366
367 def send_command(
368 self,

Callers 2

send_commandMethod · 0.95
send_batchMethod · 0.95

Calls 2

send_rawMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected