json

fun json(): JsAny(source)

The json() method of the PushMessageData interface extracts push message data by parsing it as a JSON string and returning the result.

MDN Reference