Advanced
drawer of blocks. Click the drop-down menu icon to show the Advanced invisible componentsWeb APIs
drawerWeb APIs
drawer in the Advanced section of the Blocks tab. create object
block to add multiple property:value pairs simultaneously. Get
block.response
, status
,error
)response
. Reports status
of request and if request does not go through, will report an error
"
quotes "
followed by a colon :
. The properties of the object is follows the colon :
but is within the {
curly brackets}
."base"
, "dt"
, "id"
, "name"
and "cod"
are simple properties of the JSON response. "coord"
, "main"
, "wind"
, "clouds"
and "sys"
are properties of the overall response, but each of these properties is also an object with properties of its own, or nested properties, contained within the {
curly brackets }
. "weather"
is a one-item list which also contains an object.name
) that we can retrieve and display in our app. Objects can be embedded within another object.objects
and property
that you are interested in. To get the name of the city we are viewing weather data for ("name":
in line 22), we'll want to get the property name
of the response:main
of the response objecttemp
of main
main.temp
of the response object:[
square brackets ]
."text"
property in line 13, you'll have to:"rows"
property of the object"elements"
property of the rows object"duration"
property of the elements object"text"
property of the duration objectrows[1].elements[1].duration.text
of the response:response
, status
,error
)response
. Reports status
of request and if request does not go through, will report an error
response
, status
,error
)response
. Reports status
of request and if request does not go through, will report an error
response, status, error
)response
. Reports status
of request and if request does not go through, will report an error
response
, status
,error
)response
. Reports status
of request and if request does not go through, will report an error