Configure resolver response type
Use this guide to change the resolver response format between JSON-LD and plain JSON. Adjust the setting to match the expectations of downstream applications that consume DID documents.
Prerequisites
Section titled “Prerequisites”Before you begin:
- Sign in to the Vidos dashboard
- Confirm you can manage the target resolver instance
- Ensure you understand supported response media types
Step 1: Review the current response format
Section titled “Step 1: Review the current response format”- Open Resolvers in the dashboard and select your instance.
- Go to the Test tab.
- Enter a DID to resolve, such as
did:key:z82LkvjLm5cfkWTvkm3RwyWNKb5awAXKRFZUDGjUhaXRAPE1Yx667dVszpiJTXMQsHRuZHN
. - Select Test and examine the response body and headers.
- Note the displayed format and the
Content-Type
header (defaults toapplication/did+ld+json
).
Step 2: Switch to standard JSON
Section titled “Step 2: Switch to standard JSON”- Go back to the Configuration tab for the resolver instance.
- Locate Response settings.
- Set Content type to
application/did+json
. - Select Save to apply the change.
The resolver now omits the JSON-LD @context
field and serves standard JSON DID documents.
Step 3: Validate the JSON response
Section titled “Step 3: Validate the JSON response”- Return to the Test tab.
- Resolve the same DID used earlier.
- Confirm the response body is valid JSON without the JSON-LD context.
- Verify the
Content-Type
header showsapplication/did+json
.
Step 4: Restore JSON-LD format
Section titled “Step 4: Restore JSON-LD format”- Open Configuration again.
- Change Content type back to
application/did+ld+json
. - Select Save.
- Run the test once more to ensure the response includes the JSON-LD context and the header shows
application/did+ld+json
.