mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
net.http: Response.text -> Response.body (#14478)
This commit is contained in:
@@ -13,7 +13,7 @@ fn main() {
|
||||
resp := http.get('https://example.com')?
|
||||
|
||||
// raw decode
|
||||
raw_person := json2.raw_decode(resp.text)?
|
||||
raw_person := json2.raw_decode(resp.body)?
|
||||
|
||||
// Casting `Any` type / Navigating
|
||||
person := raw_person.as_map()
|
||||
|
||||
Reference in New Issue
Block a user