Created
March 20, 2018 18:41
-
-
Save spullara/6489b1704e51d75190f94be3ead3154a to your computer and use it in GitHub Desktop.
Potential JShell use case
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-> /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