json_dart 0.1.1 copy "json_dart: ^0.1.1" to clipboard
json_dart: ^0.1.1 copied to clipboard

The well-tested helpers for convenient work with JSON types.

JSON Dart #

Cover - JSON Dart

GitHub License Pub Package Build Status Publisher

The well-tested helpers for convenient handling of JSON in Dart. Feel free to use it in your awesome project.

Usage #

Bluring Key Fields #

print({'api_key': '12345-my-key-value'}.blured());
{api_key: ******************}

Keepeing Significant Fields Only #

const json = <String, dynamic>{
  'null': null,
  'false_bool': false,
  'ok': true,
  'zero_int': 0,
  'positive_zero_double': 0.0,
  'negative_zero_double': -0.0,
  'empty_string': '',
  'empty_list': <int>[],
  'empty_map': <String, dynamic>{},
  'empty_set': <int>{},
};
print(json.jsonWithSignificantFields);
{ok: true}

Welcome #

Requests and suggestions are warmly welcome.

This package is open-source, stable and well-tested. Development happens on GitHub. Feel free to report issues or create a pull-request there.

General questions are best asked on StackOverflow.

TODO #

  • All feautures into README.
  • The types from the package pure_dart_ui.
0
likes
0
pub points
44%
popularity

Publisher

verified publishersyrokomskyi.com

The well-tested helpers for convenient work with JSON types.

Repository (GitHub)
View/report issues

Topics

#json #helper #converter #serialize #stringify

License

unknown (LICENSE)

Dependencies

vector_math

More

Packages that depend on json_dart