Package com.ardoq.adapter
Class JsonUtils
java.lang.Object
com.ardoq.adapter.JsonUtils
public class JsonUtils extends Object
-
Constructor Summary
Constructors Constructor Description JsonUtils() -
Method Summary
Modifier and Type Method Description static voidremoveReservedNullVaules(com.google.gson.JsonObject jsonObject)Removes keys from json object if they have null values.
-
Constructor Details
-
JsonUtils
public JsonUtils()
-
-
Method Details
-
removeReservedNullVaules
public static void removeReservedNullVaules(com.google.gson.JsonObject jsonObject)Removes keys from json object if they have null values. Won't touch fields as users may want to explicitly set them to null- Parameters:
jsonObject- json object to be cleaned
-