outputMode property

JsonLdOutputMode outputMode
final

The output mode for JSON-LD encoding.

  • JsonLdOutputMode.expanded: Produces expanded JSON-LD (no @context, full IRIs, all values in arrays).
  • JsonLdOutputMode.compact: Produces compact JSON-LD with a @context and abbreviated IRIs (the default).
  • JsonLdOutputMode.flattened: Produces flattened JSON-LD where all nodes are collected into a single top-level @graph array with no nesting. The output is then compacted using the same context as compact mode.

Implementation

final JsonLdOutputMode outputMode;