Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Potential JShell use case
-> /resolve com.fasterxml.jackson.core:jackson-databind:2.8.7
| Path /Users/sam/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.8.7/jackson-databind-2.8.7.jar added to classpath
| Path /Users/sam/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.8.0/jackson-annotations-2.8.0.jar added to classpath
| Path /Users/sam/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.8.7/jackson-core-2.8.7.jar added to classpath
-> var mf = new com.fasterxml.jackson.databind.MappingJsonFactory()
| Added variable mf of type com.fasterxml.jackson.databind.MappingJsonFactory with initial value com.fasterxml.jackson.databind.MappingJsonFactory@1a482e36
-> var jp = mf.createJsonParser("{\"foo\":\"bar\"}")
| Added variable jp of type com.fasterxml.jackson.core.JsonParser with initial value com.fasterxml.jackson.core.json.ReaderBasedJsonParser@689604d9
-> var tree = jp.readValueAsTree()
| Added variable tree of type com.fasterxml.jackson.core.TreeNode with initial value {"foo":"bar"}
-> tree.get("foo")
| Expression value is: "bar"
| assigned to temporary variable $4 of type com.fasterxml.jackson.core.TreeNode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.