Skip to content
ExamplesOpen editor ↗

tlisaJSON

→ loadJSON()

Loads JSON.

tlisaJSON(URL, [faGoSiame], [faGoPalelwa])

Returns a Promise; use letela inside a function. External URLs are allowed without an endpoint allowlist or proxy. Browser CORS, mixed-content and credential rules still apply. JSON object keys remain unchanged. Resolves to parsed JSON.

NameTypeDescription
URL`mokwaloRequest`
faGoSiame (optional)tiroSuccess callback. Its return becomes the Promise value.
faGoPalelwa (optional)tiroError callback; returning recovers the Promise, throwing rejects it.
Loads JSON.
tiro setaLoeto() {
  tlosaKanefase();
  diri d = letela tlisaJSON('data:application/json,{"palo":3}');
  bopaTemana(d.palo);
}

bopaTemana, dirisaMoGo