getJson

fun <T> getJson(requestUrl: String, additionalHeaders: ERROR CLASS: Symbol not found for node.http.OutgoingHttpHeaders = definedExternally): ERROR CLASS: Symbol not found for Promise<actions/http/client/TypedResponse<T>>(source)

Gets a typed object from an endpoint Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise