formatCopy method

String formatCopy()

Implementation

String formatCopy() {
  return replaceAll('},', '\n},\n')
      .replaceAll('[{', '[\n{\n')
      .replaceAll(',"', ',\n"')
      .replaceAll('{"', '{\n"')
      .replaceAll('}]', '\n}\n]');
}