getJson

fun <T> getJson(    requestUrl: String,     additionalHeaders: <Error class: unknown class> = definedExternally): <Error class: unknown class><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