java.lang.Object | |
↳ | com.pdftron.collab.utils.JsonUtils |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
JsonUtils() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static String | addItemToArray(String jsonString, String item) | ||||||||||
static JSONArray | addItemToArrayImpl(String jsonString, String item) | ||||||||||
static boolean | isValidDeleteEntity(JSONObject annotJson) | ||||||||||
static boolean |
isValidInsertEntity(JSONObject annotJson)
Check against whether the json passed in is a valid annotation
| ||||||||||
static boolean | isValidUpdateEntity(JSONObject annotJson) | ||||||||||
static AnnotationEntity | parseRetrieveMessage(JSONObject annotJson, String docId) | ||||||||||
static String | removeAllItemFromArray(String jsonString, String item) | ||||||||||
static String | removeItemFromArray(String jsonString, String item) | ||||||||||
static JSONArray | removeItemFromArrayImpl(String jsonString, String item) | ||||||||||
static int | safeGetJsonArrayLength(String jsonString) | ||||||||||
static JSONArray | safeRemoveByValue(JSONArray jsonArray, String item) | ||||||||||
static JSONArray | safeRemoveFirstByValue(JSONArray jsonArray, String item) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
JSONException |
---|
JSONException |
---|
Check against whether the json passed in is a valid annotation
JSONException |
---|
JSONException |
---|
JSONException |
---|