anchor.diff:    var encoder = const JsonEncoder.withIndent('  ');
     var prettyOutput = encoder.convert(object);
   
  -  expect(prettyOutput, expected);
  +  Expect.equals(expected, prettyOutput);
   
     encoder = const JsonEncoder.withIndent('');
   
  
positive.code:       .map((line) => line.trimLeft())
        .join('\n');
  
    expect(flatOutput, flatExpected);
  
    var compactOutput = JSON.encode(object);
  
    encoder = const JsonEncoder.withIndent(null);
    expect(encoder.convert(object), compactOutput);
  
    var prettyDecoded = JSON.decode(prettyOutput);
  
    expect(JSON.encode(prettyDecoded), compactOutput);
  }
  
negative.code: 
  import 'dart:convert';
  
  import "package:expect/expect.dart";
  
  void _testIndentWithNullChar() {
    var encoder = const JsonEncoder.withIndent('\x00');
    var encoded = encoder.convert([[],[[]]]);
    Expect.equals("[\n\x00[],\n\x00[\n\x00\x00[]\n\x00]\n]", encoded);
  }
  
  void main() {
  