pub fn get_json<T: DeserializeOwned>(
url: &str,
headers: &[(&str, &str)],
) -> Result<T, JsonGetError>Expand description
GET url and parse the body as T.
Every loader resolver starts here — a small JSON API, one request, no retry. Shared so that the status check and the decode have one spelling across the family rather than one per crate.