json

inline suspend fun Body.json(): JsAny?(source)

The json() method of the Request interface reads the request body and returns it as a promise that resolves with the result of parsing the body text as JSON.

MDN Reference


val RequestDestination.Companion.json: RequestDestination(source)

MDN Reference