Decode a UTF-8 byte buffer as JSON when the content-type declares JSON, or fall back to a UTF-8 string. Handy shared helper for probe-style call sites that don't care about binary bodies.
Decode a UTF-8 byte buffer as JSON when the content-type declares JSON, or fall back to a UTF-8 string. Handy shared helper for probe-style call sites that don't care about binary bodies.