json_dart 0.1.0
json_dart: ^0.1.0 copied to clipboard
The well-tested extensions for convenient work with JSON types.
JSON Dart #
The well-tested extensions for convenient handling of JSON in Dart.
Usage #
Bluring Key Fields #
print({'api_key': '12345-my-key-value'}.blured());
Output:
{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);
Output:
{ok: true}
License #
MIT
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.