pretty_json 2.0.0 copy "pretty_json: ^2.0.0" to clipboard
pretty_json: ^2.0.0 copied to clipboard

A small wrapper for pretty printing JSON objects in a more human readable format. Typically this package would be used for network logging and debugging objects.

example/pretty_json_example.dart

import 'package:pretty_json/pretty_json.dart';

void main() {
  var json = <String, dynamic>{
    'a': 'value 1',
    'b': 'value 2',
    'c': {
      'd': 'value 3',
      'e': [1, 2, 3]
    }
  };

  print(prettyJson(json, indent: 2));
  printPrettyJson(json);
}
54
likes
140
pub points
92%
popularity

Publisher

verified publisherferdzz.com

A small wrapper for pretty printing JSON objects in a more human readable format. Typically this package would be used for network logging and debugging objects.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

More

Packages that depend on pretty_json