pretty_print_json 1.0.1 pretty_print_json: ^1.0.1 copied to clipboard
Prints a prettified json string or object.
example/pretty_print_json_example.dart
import 'package:pretty_print_json/pretty_print_json.dart';
void main() {
prettyPrintJson([
{"a": 1, "b": 2}
]);
prettyPrintJson('{"a": 1, "b": 2}');
prettyPrintJson({
"a": 1,
"b": [2, 3]
});
prettyPrintJson([
{"a": 1, "b": 2},
{"a": 1, "b": 2},
]);
}