Package com.intuit.karate
Class JsonUtils
- java.lang.Object
-
- com.intuit.karate.JsonUtils
-
public class JsonUtils extends Object
- Author:
- pthomas3
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Object
deepCopy(Object o)
static String
escapeValue(String raw)
static List<Map>
fromCsv(String raw)
static Object
fromJson(String json)
static <T> T
fromJson(String s, Class<T> clazz)
static Object
fromJson(String s, String className)
static Object
fromJsonStrict(String json)
static Object
fromYaml(String raw)
static boolean
isJson(String s)
static void
removeKeysWithNullValues(Object o)
static String
toCsv(List<Map<String,Object>> list)
static String
toJson(Object o)
static String
toJson(Object o, boolean pretty)
static byte[]
toJsonBytes(Object o)
static String
toJsonSafe(Object o, boolean pretty)
static String
toStrictJson(String raw)
-