Uses of Interface
cloud.opencode.base.json.JsonNode
Packages that use JsonNode
Package
Description
OpenCode JSON - Unified JSON Processing Facade
OpenCode JSON - 统一 JSON 处理门面
JSON Adapter - Custom Type Adapters
JSON Adapter - 自定义类型适配器
JSON Diff - JSON Object Comparison
JSON Diff - JSON 对象比较
JSON Patch - RFC 6902 and RFC 7396 Implementation
JSON Patch - RFC 6902 和 RFC 7396 实现
JSON Path - JSONPath and JSON Pointer Support
JSON Path - JSONPath 和 JSON Pointer 支持
JSON Schema - JSON Schema Validation (Draft 2020-12)
JSON Schema - JSON Schema 验证(Draft 2020-12)
JSON Security - Security Features for JSON Processing
JSON Security - JSON 处理的安全特性
JSON SPI - Service Provider Interface for JSON Engines
JSON SPI - JSON 引擎的服务提供者接口
JSON Utility Classes - Practical JSON Processing Tools
JSON 工具类 - 实用 JSON 处理工具
-
Uses of JsonNode in cloud.opencode.base.json
Classes in cloud.opencode.base.json that implement JsonNodeModifier and TypeClassDescriptionstatic final classArray Node - Represents a JSON array.static final recordBoolean Node - Represents a JSON boolean.static final recordNull Node - Represents a JSON null.static final recordNumber Node - Represents a JSON number.static final classObject Node - Represents a JSON object.static final recordString Node - Represents a JSON string.Classes in cloud.opencode.base.json that implement interfaces with type arguments of type JsonNodeModifier and TypeClassDescriptionstatic final classArray Node - Represents a JSON array.Methods in cloud.opencode.base.json that return JsonNodeModifier and TypeMethodDescriptiondefault JsonNodeJsonNode.at(JsonPointer pointer) Navigates to a node using JsonPointer.default JsonNodeNavigates to a node using JSON Pointer (RFC 6901).static JsonNodeEvaluates a JSON Pointer against a node.JsonNode.ArrayNode.get(int index) default JsonNodeJsonNode.get(int index) Gets a child node by index (for arrays).default JsonNodeGets a child node by property name (for objects).static JsonNodeOpenJson.mergePatch(JsonNode target, JsonNode patch) Applies a JSON Merge Patch to a document.static JsonNodeJsonNode.nullNode()Creates a null node.static JsonNodeJsonNode.of(boolean value) Creates a boolean node.static JsonNodeCreates a number node.static JsonNodeCreates a node from a value.static JsonNodeCreates a string node.static JsonNodeOpenJson.parse(byte[] json) Parses JSON bytes to JsonNode tree.static JsonNodeParses JSON string to JsonNode tree.OpenJson.parseTree(byte[] json) Parses JSON bytes to tree.Parses JSON to tree.static JsonNodeApplies a JSON Patch to a document.static JsonNodeOpenJson.selectFirst(JsonNode node, String path) Selects first matching node using JSONPath.static JsonNodeConverts object to JsonNode tree.static JsonNodeRestores a flattened map back to a nested JSON node.OpenJson.valueToTree(Object obj) Converts object to tree.Methods in cloud.opencode.base.json that return types with arguments of type JsonNodeModifier and TypeMethodDescriptionFlattens a nested JSON node into a flat key-value map using dot notation.JsonNode.ArrayNode.iterator()Selects nodes using JSONPath expression.Selects nodes using JSONPath.JsonNode.ArrayNode.toList()JsonNode.ObjectNode.toMap()Methods in cloud.opencode.base.json with parameters of type JsonNodeModifier and TypeMethodDescriptionstatic JsonNodeEvaluates a JSON Pointer against a node.static StringOpenJson.canonicalize(JsonNode node) Produces RFC 8785 canonical JSON output for the given node.static JsonDiff.DiffResultComputes diff between two JSON documents.Flattens a nested JSON node into a flat key-value map using dot notation.static JsonNodeOpenJson.mergePatch(JsonNode target, JsonNode patch) Applies a JSON Merge Patch to a document.static JsonNodeApplies a JSON Patch to a document.Selects nodes using JSONPath.static JsonNodeOpenJson.selectFirst(JsonNode node, String path) Selects first matching node using JSONPath.static booleanOpenJson.structuralEquals(JsonNode a, JsonNode b) Compares two JSON nodes for structural equality (ignoring object key order).<T> TOpenJson.treeToObject(JsonNode node, Class<T> clazz) Converts tree to object.static <T> TOpenJson.treeToValue(JsonNode node, Class<T> clazz) Converts JsonNode to object.Validates JSON against a schema.static voidOpenJson.validateOrThrow(JsonNode data, JsonNode schema) Validates and throws if invalid.Method parameters in cloud.opencode.base.json with type arguments of type JsonNode -
Uses of JsonNode in cloud.opencode.base.json.adapter
Methods in cloud.opencode.base.json.adapter that return JsonNodeModifier and TypeMethodDescriptionSerializes a value to a JsonNode.Methods in cloud.opencode.base.json.adapter with parameters of type JsonNodeModifier and TypeMethodDescriptionDeserializes a JsonNode to a value.Method parameters in cloud.opencode.base.json.adapter with type arguments of type JsonNode -
Uses of JsonNode in cloud.opencode.base.json.diff
Methods in cloud.opencode.base.json.diff that return JsonNodeModifier and TypeMethodDescriptionJsonDiff.DiffResult.source()Returns the value of thesourcerecord component.JsonDiff.Difference.sourceValue()Returns the value of thesourceValuerecord component.JsonDiff.DiffResult.target()Returns the value of thetargetrecord component.JsonDiff.Difference.targetValue()Returns the value of thetargetValuerecord component.Methods in cloud.opencode.base.json.diff with parameters of type JsonNodeModifier and TypeMethodDescriptionstatic JsonDiff.DiffResultstatic booleanChecks if two documents are equal.Constructors in cloud.opencode.base.json.diff with parameters of type JsonNodeModifierConstructorDescriptionDifference(JsonDiff.DiffType type, String path, JsonNode sourceValue, JsonNode targetValue) Creates an instance of aDifferencerecord class.DiffResult(List<JsonDiff.Difference> differences, JsonNode source, JsonNode target) Creates an instance of aDiffResultrecord class. -
Uses of JsonNode in cloud.opencode.base.json.patch
Methods in cloud.opencode.base.json.patch that return JsonNodeModifier and TypeMethodDescriptionApplies this patch to a target.static JsonNodeApplies a merge patch to a target.Builds and applies the patch to a target.Applies this patch to a JSON document.JsonMergePatch.getPatch()Returns the patch content.JsonPatch.PatchOperation.value()Returns the value of thevaluerecord component.Methods in cloud.opencode.base.json.patch with parameters of type JsonNodeModifier and TypeMethodDescriptionAdds an add operation.Applies this patch to a target.static JsonNodeApplies a merge patch to a target.Builds and applies the patch to a target.Applies this patch to a JSON document.static JsonMergePatchCreates a diff patch between two documents.static JsonMergePatchCreates a merge patch from a JsonNode.Adds a replace operation.Sets a property value.Adds a test operation.booleanValidates this patch against a target without applying.Constructors in cloud.opencode.base.json.patch with parameters of type JsonNodeModifierConstructorDescriptionPatchOperation(JsonPatch.Operation op, String path, JsonNode value) PatchOperation(JsonPatch.Operation op, String path, String from, JsonNode value) Creates an instance of aPatchOperationrecord class. -
Uses of JsonNode in cloud.opencode.base.json.path
Methods in cloud.opencode.base.json.path that return JsonNodeModifier and TypeMethodDescriptionEvaluates this pointer against a JSON node.JsonPath.evaluateFirst(JsonNode root) Returns the first matching node.JsonPointer.evaluateOrNull(JsonNode root) Evaluates this pointer, returning null if path doesn't exist.static JsonNodeReads the first matching value from a JSON node.Methods in cloud.opencode.base.json.path that return types with arguments of type JsonNodeModifier and TypeMethodDescriptionEvaluates this path against a JSON node.Reads all matching values from a JSON node.Methods in cloud.opencode.base.json.path with parameters of type JsonNodeModifier and TypeMethodDescriptionEvaluates this path against a JSON node.Evaluates this pointer against a JSON node.JsonPath.evaluateFirst(JsonNode root) Returns the first matching node.JsonPointer.evaluateOrNull(JsonNode root) Evaluates this pointer, returning null if path doesn't exist.static booleanChecks if any node matches the expression.booleanChecks if this pointer exists in the given node.Reads all matching values from a JSON node.static JsonNodeReads the first matching value from a JSON node. -
Uses of JsonNode in cloud.opencode.base.json.schema
Methods in cloud.opencode.base.json.schema with parameters of type JsonNodeModifier and TypeMethodDescriptionstatic JsonSchemaValidatorCreates a validator for the given schema.Validates data against this validator's schema.Validates data against a schema.voidJsonSchemaValidator.validateOrThrow(JsonNode data) Validates and throws if invalid.static voidJsonSchemaValidator.validateOrThrow(JsonNode data, JsonNode schema) Validates data and throws if invalid. -
Uses of JsonNode in cloud.opencode.base.json.security
Methods in cloud.opencode.base.json.security that return JsonNodeModifier and TypeMethodDescriptionstatic JsonNodeJsonSecurity.sanitizeForHtml(JsonNode node) Sanitizes all string values in a JSON tree for HTML output.Methods in cloud.opencode.base.json.security with parameters of type JsonNodeModifier and TypeMethodDescriptionstatic intJsonSecurity.calculateDepth(JsonNode node) Calculates the depth of a JSON tree.static intJsonSecurity.calculateSize(JsonNode node) Calculates the total size (entries) of a JSON tree.JsonSecurity.findDangerousKeys(JsonNode node) Checks for dangerous property keys.static booleanJsonSecurity.hasDangerousKeys(JsonNode node) Checks if JSON contains dangerous keys.static JsonNodeJsonSecurity.sanitizeForHtml(JsonNode node) Sanitizes all string values in a JSON tree for HTML output.static voidJsonSecurity.validate(JsonNode node, JsonSecurity.SecurityOptions options) Validates a JSON node against security options.static voidJsonSecurity.validateDepth(JsonNode node, int maxDepth) Validates JSON depth.static voidJsonSecurity.validateSize(JsonNode node, int maxSize) Validates JSON size (total entries). -
Uses of JsonNode in cloud.opencode.base.json.spi
Methods in cloud.opencode.base.json.spi that return JsonNodeModifier and TypeMethodDescriptionJsonProvider.parseTree(byte[] json) Parses JSON bytes to a JsonNode tree.Parses a JSON string to a JsonNode tree.JsonProvider.valueToTree(Object obj) Converts an object to a JsonNode tree.Methods in cloud.opencode.base.json.spi with parameters of type JsonNodeModifier and TypeMethodDescription<T> TJsonProvider.treeToValue(JsonNode node, Class<T> clazz) Converts a JsonNode to an object of the specified class. -
Uses of JsonNode in cloud.opencode.base.json.util
Methods in cloud.opencode.base.json.util that return JsonNodeModifier and TypeMethodDescriptionstatic JsonNodeUnflattens a flat map back into a nested JSON tree using the default "." separator.static JsonNodeUnflattens a flat map back into a nested JSON tree using a custom separator.Methods in cloud.opencode.base.json.util that return types with arguments of type JsonNodeModifier and TypeMethodDescriptionFlattens a JSON tree into a flat map using the default configuration.JsonFlattener.flatten(JsonNode node, JsonFlattener.FlattenConfig config) Flattens a JSON tree into a flat map using the specified configuration.Flattens a JSON tree into a flat map using a custom separator.Methods in cloud.opencode.base.json.util with parameters of type JsonNodeModifier and TypeMethodDescriptionstatic StringJsonCanonicalizer.canonicalize(JsonNode node) Canonicalizes a JsonNode according to RFC 8785 JCS.static booleanCompares two JSON nodes for structural equality.static booleanJsonEquals.equalsIgnoreArrayOrder(JsonNode a, JsonNode b) Compares two JSON nodes for structural equality, ignoring array element order.Flattens a JSON tree into a flat map using the default configuration.JsonFlattener.flatten(JsonNode node, JsonFlattener.FlattenConfig config) Flattens a JSON tree into a flat map using the specified configuration.Flattens a JSON tree into a flat map using a custom separator.static StringReturns a brief summary of the node's type and size.static StringJsonTruncator.truncate(JsonNode node, JsonTruncator.TruncateConfig config) Truncates a JsonNode tree according to the specified configuration.Method parameters in cloud.opencode.base.json.util with type arguments of type JsonNode