prettyPrint method

JSONString prettyPrint(
  1. JSONString jsonValue
)

Implementation

JSONString prettyPrint(JSONString jsonValue) {
  jsonValue = _trimResultHeader(jsonValue);
  final encoder = JsonEncoder.withIndent("  ");
  final prettyValue = encoder.convert(jsonDecode(jsonValue));
  return prettyValue;
}