Skip to content

getJsonOrText

Overview

Fetches a URL and returns the response.

Signature

getJsonOrText(response)

Parameters

NameTypeRequiredDescription
responseResponseyesThe object to convert.

Returns

Promise

Either the JSON data or the text data.

Source

client/lib/utils/fetchSupport.js:14

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2