Tagged “json”
Entries across every discipline that share this thread.
How-to
Make a GET Request in JavaScript
Fetch JSON from an API in the browser or Node using the async fetch API.
How-toMake a GET Request in Python
Fetch JSON from an API using the requests library, raising on error status codes.
How-toMake a GET Request in Swift
Fetch data from a URL using URLSession's async/await API and decode the response.
How-toParse JSON in Kotlin
Decode JSON into data classes using the kotlinx.serialization library.
How-toParse JSON in Python
Convert a JSON string into Python dicts and lists with the standard-library json module.
How-toParse JSON in Swift
Decode JSON into strongly typed Swift structs with JSONDecoder and the Codable protocol.