Skip to contents

mm_resp_parse() parses the raw bytes from an API response, returning an R list object. After converting bytes to characters, encoding is done to resolve a UTF-8 issue from Megamation's side.

Usage

mm_resp_parse(resp)

Arguments

resp

An API response.

Value

A list.

Examples

# Parses empty response body to return an empty list
resp <- httr2::response_json()
resp |> megamation:::mm_resp_parse()
#> list()