https://github.com/softmotions/json_at
Dart implementation of RFC 6901 JSON pointer
https://github.com/softmotions/json_at
dart json rfc-6901
Last synced: about 2 months ago
JSON representation
Dart implementation of RFC 6901 JSON pointer
- Host: GitHub
- URL: https://github.com/softmotions/json_at
- Owner: Softmotions
- License: mit
- Created: 2019-07-09T17:49:37.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-06-22T03:45:15.000Z (almost 4 years ago)
- Last Synced: 2025-04-04T12:12:16.726Z (3 months ago)
- Topics: dart, json, rfc-6901
- Language: Dart
- Homepage: https://pub.dev/packages/json_at
- Size: 6.16 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# [RFC 6901](https://tools.ietf.org/html/rfc6901) JSON pointer Dart implementation
```dart
/// 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 jsonAt(dynamic obj, String pointer)
``````dart
import 'package:json_at/json_at.dart';void main() {
const doc = {
'foo': {'bar': 'baz'}
};
final val = jsonAt(doc, '/foo/bar');
print(val.value);
}
```