json method

void json(
  1. Object? value
)

Writes value as indented JSON.

Implementation

void json(Object? value) =>
    _sink.writeln(const JsonEncoder.withIndent('  ').convert(value));