anchor.diff:    });
   
     _pubDependenciesFile(nullSafety: nullSafety)
  -      .writeAsStringSync(jsonEncode(packageVersions));
  -}
  +      .writeAsStringSync(_jsonEncoder.convert(packageVersions));
  +}
  +
  +/// An encoder which indents nested elements by two spaces.
  +const JsonEncoder _jsonEncoder = JsonEncoder.withIndent('  ');
   
   /// Returns the File containing the pub dependencies and their version numbers.
   ///
  
positive.code: }
  
  @Task('Update pubspec dependency versions')
  void updatePubDependencies() async {
    for (final nullSafety in [false, true]) {
      await updateDependenciesFile(nullSafety: nullSafety);
  
negative.code: library services.grind;
  
  import 'dart:async';
  import 'dart:convert' show jsonDecode, JsonEncoder;
  import 'dart:io';
  
  import 'package:dart_services/src/sdk.dart';
  