pub fn send_json(req: RequestBuilder, ctx: &str) -> Result<Value>Expand description
Send a request, check status, parse JSON. Returns the parsed value
on 2xx; on any other status, returns a PlatformApi
error including the platform’s own message field when present.
ctx is a short label for the error message (“GitHub”, “Gitea
retry”, etc.) — the caller picks something that disambiguates.