FLUTTER ECOSYSTEM

json_path

Implementation of RFC 9535 - JSONPath: Query Expressions for JSON. Reads and writes values in parsed JSON objects using queries like `$.store.book[2].price`.

Latest version
0.9.0
30-day downloads
301K
Likes
126
Pub points
160

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

json_path is a Dart package that implements RFC 9535 for JSONPath, enabling powerful querying and manipulation of JSON data. It allows users to read and write values in parsed JSON objects using expressive path expressions such as `$.store.book[2].price`. The package supports standard JSONPath syntax and is compatible across multiple platforms including Android, iOS, Web, macOS, Windows, and Linux. Ideal for dynamic data extraction and transformation in Flutter applications.

Use cases
  • Extracting nested JSON values
  • Updating specific JSON fields
  • Filtering arrays in JSON data
  • Parsing complex JSON structures
  • Dynamic configuration handling
  • Data transformation in APIs
Key features
  • Full RFC 9535 compliance
  • Supports read and write operations
  • Intuitive path syntax like `$.store.book[2].price`
  • Cross-platform compatibility
  • Lightweight and fast
  • Robust error handling
Suitable for
  • Flutter apps needing dynamic JSON queries
  • Backend services processing JSON payloads
  • Configuration management systems
  • API clients with variable response structures
  • Data pipelines requiring flexible JSON manipulation
Considerations
  • Requires valid JSON input
  • Performance may vary with deeply nested or large JSON
  • Limited to JSONPath syntax defined in RFC 9535
  • Not suitable for non-JSON data types
  • May need careful validation in untrusted inputs
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add json_path

Categories

Dependencies

Dependency list 4 items

Source repository

Related projects