extractDidDocument

abstract fun extractDidDocument(jsonResponse: JsonObject): JsonObject?

Extracts the DID document from the response.

Different providers may wrap the document differently:

  • Standard: { "didDocument": {...} }

  • Direct: { ... } (document is the root)

Return

JsonObject containing the DID document, or null if not found

Parameters

jsonResponse

Parsed JSON response