Link Search Menu Expand Document

Json.StringFromUrl()

StringFromUrl(url, queryParameters?, headers?) => Requests data from url and returns it as a string
Name Type Description
url Text Url for api to request data from
queryParameters Dictionary A dictionary containing the parameters to use for the api request
headers Dictionary A dictionary containing any headers to include with api request
json.StringFromUrl('https://samples.openweathermap.org/data/2.5/weather', Dictionary('q', 'London,uk', 'appid', 'b6907d289e10d714a6e88b30761fae22'))

returns this json string

{"coord":{"lon":-0.13,"lat":51.51},"weather":[{"id":300,"main":"Drizzle","description":"light intensity drizzle","icon":"09d"}],"base":"stations","main":{"temp":280.32,"pressure":1012,"humidity":81,"temp_min":279.15,"temp_max":281.15},"visibility":10000,"wind":{"speed":4.1,"deg":80},"clouds":{"all":90},"dt":1485789600,"sys":{"type":1,"id":5091,"message":0.0103,"country":"GB","sunrise":1485762037,"sunset":1485794875},"id":2643743,"name":"London","cod":200}

Json.FromUrl()

FromUrl(url, queryParameters?, headers?) => Requests data from url and returns it as an Atelerix object
Name Type Description
url Text Url for api to request data from
queryParameters Dictionary A dictionary containing the parameters to use for the api request
headers Dictionary A dictionary containing any headers to include with api request

Json.FromString()

FromString(json) => Returns an Atelerix object created from the json text 
Name Type Description
json Text Json to convert to Atelerix object
json.FromString('["one", ["two", "two"]]')

returns the Atelerix list

[one, [two, two]]

Json.ToString()

ToString(atelerixObject) => Returns a json text created from the atelerix object
Name Type Description
atelerixObject * Atelerix object to convert to json text
json.toString(Dictionary('key1', 1, 'key2', 2))

returns the text

{key1:1, key2:2}