Registry / serialization / jackson-jr-stree

jackson-jr-stree

JSON →
library2.22.0javamavenunverified

Simple immutable (read-only) tree model that builds directly on jackson-core (streaming), has no other dependencies.

<dependency> <groupId>com.fasterxml.jackson.jr</groupId> <artifactId>jackson-jr-stree</artifactId> <version>2.22.0</version> </dependency>
INSTALL
IMPORT
SIG · JACKSON-JR-STREE
J
jackson-jr-stree
serializationjavav2.22.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JrsValue
com.fasterxml.jackson.jr.stree.JrsValue

Parses JSON into an immutable tree model and accesses a field.

import com.fasterxml.jackson.jr.stree.JrsValue; import com.fasterxml.jackson.jr.stree.JrsObject; import com.fasterxml.jackson.jr.ob.JSON; public class Example { public static void main(String[] args) throws Exception { String json = "{\"name\":\"John\"}"; JrsValue tree = JSON.std.treeFrom(json); JrsObject obj = (JrsObject) tree; System.out.println(obj.get("name").asText()); } }
Debug
Known issues
gotchajackson-jr-stree is read-only; modifications require creating new trees.
fix
Use jackson-jr-objects or jackson-databind for mutable operations.
affects: *
Upgrade
Version history
2.22.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
jackson-jr-stree — mvn dependency:get jackson-jr-stree · libregistry