public class JsonUtils extends Object
| Constructor and Description |
|---|
JsonUtils() |
| Modifier and Type | Method and Description |
|---|---|
static net.javacrumbs.jsonunit.core.internal.Node |
convertToJson(Object source,
String label)
Converts object to JSON.
|
static net.javacrumbs.jsonunit.core.internal.Node |
getNode(Object root,
String path)
Returns node with given path.
|
static boolean |
nodeExists(Object json,
String path)
Returns true if the node exists.
|
public static net.javacrumbs.jsonunit.core.internal.Node convertToJson(Object source, String label)
source - label - label to be logged in case of error.public static net.javacrumbs.jsonunit.core.internal.Node getNode(Object root, String path)
root - path - Copyright © 2014. All Rights Reserved.