public class JsonUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Optional<com.fasterxml.jackson.databind.JsonNode> |
convertFromStringToJSONNode(String json)
This method aim is to to evaluate if any possible String is a valid json or not.
|
public static Optional<com.fasterxml.jackson.databind.JsonNode> convertFromStringToJSONNode(String json)
JsonNode. In case of success, i.e.
the given string is a valid json, it put the JsonNode in a Optional. An empty
Optional is passed otherwise.json - Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.