Accept.prototype.toJsonLd(options?: { format?: "compact" | "expand"; contextLoader?: DocumentLoader; context?: ; }): Promise<unknown>
Converts this object to a JSON-LD structure.
optional
options: { format?: "compact" | "expand"; contextLoader?: DocumentLoader; context?: ; }
The options to use.
format
: The format of the output:compact
orexpand
.contextLoader
: The loader for remote JSON-LD contexts.context
: The JSON-LD context to use. Not applicable whenformat
is set to'expand'
.
Promise<unknown>
The JSON-LD representation of this object.