json_at

Last updated:

0 purchases

json_at Image
json_at Images
Add to Cart

Description:

json at

RFC 6901 JSON pointer Dart implementation #
/// Gets [obj] sub-property value located by RFC 6901 JSON [pointer].
/// If type of [obj] is string it will be parsed to JSON object used for search.
/// Returns [Optional] value holder.
Optional<dynamic> jsonAt(dynamic obj, String pointer)
copied to clipboard
import 'package:json_at/json_at.dart';

void main() {
const doc = {
'foo': {'bar': 'baz'}
};
final val = jsonAt(doc, '/foo/bar');
print(val.value);
}
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.