kitJson function

String kitJson(
  1. Object? json
)

Pretty-printed, newline-terminated. Key order is insertion order, which every map here fixes, so a re-run with no code change is a no-op diff.

Implementation

String kitJson(Object? json) =>
    '${const JsonEncoder.withIndent('  ').convert(_plain(json))}\n';