Response.decode_as_json
decode_as_jsonencoding
Group: Conversions
Aliases: parse as json
, parse json
Documentation
Decodes the body as JSON.
Arguments
encoding
: The encoding to use. If not specified, the encoding is inferred from response headers. If that fails, UTF-8 is used as the fallback.
Examples
Convert a response from JSON.
import Standard.Examples
example_to_text = Data.fetch Examples.geo_data_url . decode_as_json