The body of the response contains raw bytes. After converting these bytes to a string, encoding is done to resolve a UTF-8 issue from Megamation's side.
Details
mm_resp_extract()
parses the raw bytes from an API response, and extracts
data from the parsed object.
Examples
# Returns NULL from an empty response body
resp <- httr2::response_json()
resp |> megamation:::mm_resp_extract()
#> NULL