Java Code Examples for com.fasterxml.jackson.core.TreeNode#toString()
The following examples show how to use
com.fasterxml.jackson.core.TreeNode#toString() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: KeepAsJsonDeserialzier.java From client-sdk-java with Apache License 2.0 | 5 votes |
@Override public String deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { TreeNode tree = jp.getCodec().readTree(jp); return tree.toString(); }
Example 2
Source File: KeepAsJsonDeserialzier.java From etherscan-explorer with GNU General Public License v3.0 | 5 votes |
@Override public String deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { TreeNode tree = jp.getCodec().readTree(jp); return tree.toString(); }
Example 3
Source File: KeepAsJsonDeserialzier.java From web3sdk with Apache License 2.0 | 5 votes |
@Override public String deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { TreeNode tree = jp.getCodec().readTree(jp); return tree.toString(); }
Example 4
Source File: KeepAsJsonDeserialzier.java From web3j with Apache License 2.0 | 5 votes |
@Override public String deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { TreeNode tree = jp.getCodec().readTree(jp); return tree.toString(); }
Example 5
Source File: JSONParser.java From Halyard with Apache License 2.0 | 5 votes |
private void hash(TreeNode node) { if (node.isArray()) { md.update((byte)'l'); for (int i = 0; i < node.size(); i++) { hash(node.get(i)); } md.update((byte)'e'); } else if (node.isObject()) { String[] fieldNames = new String[node.size()]; Iterator<String> it = node.fieldNames(); for (int i=0; i< fieldNames.length; i++) { fieldNames[i] = it.next(); } Arrays.sort(fieldNames); md.update((byte)'d'); for (String fName : fieldNames) { hash(fName); hash(node.get(fName)); } md.update((byte)'e'); } else if (node.isValueNode()) { String val = ((JsonNode)node).textValue(); if (val != null) { hash(val); } } else { throw new IllegalArgumentException(node.toString()); } }
Example 6
Source File: RawStringDeserialzier.java From poli with MIT License | 4 votes |
@Override public String deserialize(JsonParser parser, DeserializationContext ctx) throws IOException { TreeNode tree = parser.getCodec().readTree(parser); return tree.toString(); }
Example 7
Source File: JsonRawValueDeserializer.java From sailfish-core with Apache License 2.0 | 4 votes |
@Override public String deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { TreeNode tree = p.getCodec().readTree(p); return tree.toString(); }
Example 8
Source File: SbiDataSet.java From Knowage-Server with GNU Affero General Public License v3.0 | 4 votes |
@Override public String deserialize(JsonParser parser, DeserializationContext context) throws IOException, JsonProcessingException { TreeNode tree = parser.getCodec().readTree(parser); return tree.toString(); }
Example 9
Source File: ToStringDeserializer.java From FROST-Server with GNU Lesser General Public License v3.0 | 4 votes |
@Override public Object deserialize(JsonParser jp, DeserializationContext dc) throws IOException { TreeNode tree = jp.getCodec().readTree(jp); return tree.toString(); }