Concept
- HTTP and HTTPS operations are fallible.
Example
use json
use https
value = json.parse "{\"name\":\"SE\"}"
say value["name"]
body = try https.get "https://example.com"
say bodySE maps JSON into native SE values and includes HTTP/HTTPS/network helpers.
use json
use https
value = json.parse "{\"name\":\"SE\"}"
say value["name"]
body = try https.get "https://example.com"
say body