json_at 2.1.0 copy "json_at: ^2.1.0" to clipboard
json_at: ^2.1.0 copied to clipboard

Dart implementation of RFC 6901 JSON pointer specification .

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)
import 'package:json_at/json_at.dart';

void main() {
  const doc = {
    'foo': {'bar': 'baz'}
  };
  final val = jsonAt(doc, '/foo/bar');
  print(val.value);
}
2
likes
150
pub points
51%
popularity

Publisher

verified publishersoftmotions.com

Dart implementation of RFC 6901 JSON pointer specification .

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

quiver, test

More

Packages that depend on json_at