Package cloud.opencode.base.json.path


package cloud.opencode.base.json.path
JSON Path - JSONPath and JSON Pointer Support JSON Path - JSONPath 和 JSON Pointer 支持

This package provides JSONPath (XPath-style) and JSON Pointer (RFC 6901) for accessing nested JSON data without full deserialization.

本包提供 JSONPath(XPath 风格)和 JSON Pointer(RFC 6901)用于访问嵌套 JSON 数据, 无需完全反序列化。

Key Classes | 核心类:

  • JsonPath - JSONPath tool - JSONPath 工具
  • JsonPointer - JSON Pointer (RFC 6901) - JSON 指针

Usage Examples | 使用示例:

// JSONPath
List<String> titles = JsonPath.read(json, "$.store.book[*].title");

// JSON Pointer
String city = JsonPointer.read(json, "/address/city");
Since:
JDK 25, opencode-base-json V1.0.0
Author:
Leon Soo www.LeonSoo.com
See Also:
  • Classes
    Class
    Description
    JSON Path - XPath-style Query Language for JSON JSON Path - JSON 的 XPath 风格查询语言
    JSON Pointer - RFC 6901 Implementation JSON Pointer - RFC 6901 实现