Package com.restfb.util
Klasse StringJsonUtils
java.lang.Object
com.restfb.util.StringJsonUtils
Helper class to encapsulate simple checks used in the DefaultJsonMapper.
-
Feldübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic boolean
isEmptyList
(String jsonString) Is the given JSON equivalent to the empty list ([]
)?static boolean
isEmptyObject
(String jsonString) Is the given JSON equivalent to the empty object ({}
)?static boolean
Checks if the given String is equals to the String with the content"false"
static boolean
Checks if the given String start with a[
character, so it may be a JsonArraystatic boolean
Checks if the given String is equals to the String with the content"null"
static boolean
Checks if the given String start with a{
character, so it may be a JsonObject
-
Felddetails
-
EMPTY_OBJECT
- Siehe auch:
-
-
Methodendetails
-
isEmptyList
Is the given JSON equivalent to the empty list ([]
)?- Parameter:
jsonString
- The JSON to check.- Gibt zurück:
true
if the JSON is equivalent to the empty list,false
otherwise.
-
isList
Checks if the given String start with a[
character, so it may be a JsonArray- Parameter:
jsonString
- the JSON to check.- Gibt zurück:
true
if the String may be a JSON Array
-
isNull
Checks if the given String is equals to the String with the content"null"
- Parameter:
jsonString
- the JSON to check.- Gibt zurück:
true
if the String is"null"
-
isFalse
Checks if the given String is equals to the String with the content"false"
- Parameter:
jsonString
- the JSON to check.- Gibt zurück:
true
if the String is"false"
-
isObject
Checks if the given String start with a{
character, so it may be a JsonObject- Parameter:
jsonString
- the JSON to check.- Gibt zurück:
true
if the String may be a JSON object
-
isEmptyObject
Is the given JSON equivalent to the empty object ({}
)?- Parameter:
jsonString
- The JSON to check.- Gibt zurück:
true
if the JSON is equivalent to the empty object,false
otherwise.
-