pretty_print_json 1.0.1 copy "pretty_print_json: ^1.0.1" to clipboard
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},
  ]);
}
3
likes
150
points
795
downloads

Publisher

unverified uploader

Weekly Downloads

Prints a prettified json string or object.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on pretty_print_json