Class JsonUtils
java.lang.Object
net.javacrumbs.jsonunit.core.internal.JsonUtils
Internal utility class to parse JSON values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NodeconvertToJson(@Nullable Object source, String label) Converts object to JSON.static NodeconvertToJson(@Nullable Object source, String label, boolean lenient) Converts object to JSON.static NodeReturns node with given path.static NodeReturns node with given path.static StringgetPathPrefix(@Nullable Object json) static ObjectjsonSource(Object json, String pathPrefix) static ObjectjsonSource(Object json, String pathPrefix, List<String> matchingPaths) static Objectstatic booleannodeAbsent(@Nullable Object json, String path, Configuration configuration) static booleannodeAbsent(@Nullable Object json, Path path, Configuration configuration) static NodewrapDeserializedObject(@Nullable Object source) Wraps deserialized object - supports null, String, numbers, maps, lists, ...
-
Constructor Details
-
JsonUtils
public JsonUtils()
-
-
Method Details
-
convertToJson
-
convertToJson
-
getNode
-
getNode
-
nodeAbsent
-
nodeAbsent
-
jsonSource
-
jsonSource
-
getPathPrefix
-
wrapDeserializedObject
-
missingNode
-