MCPcopy Create free account
hub / github.com/1jehuang/jcode / parse_request_json

Function parse_request_json

crates/jcode-protocol/src/protocol_tests.rs:4–6  ·  view source on GitHub ↗
(json: &str)

Source from the content-addressed store, hash-verified

2use anyhow::{Result, anyhow};
3
4fn parse_request_json(json: &str) -> Result<Request> {
5 serde_json::from_str(json).map_err(Into::into)
6}
7
8fn parse_event_json(json: &str) -> Result<ServerEvent> {
9 serde_json::from_str(json).map_err(Into::into)

Calls

no outgoing calls

Tested by

no test coverage detected