Package org.opencastproject.util
Class JsonObj
java.lang.Object
org.opencastproject.util.JsonObj
Accessor for JSON objects aka maps.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
jsonObj
jsonObj(java.util.Map)as a function.
-
-
Constructor Details
-
JsonObj
Create a wrapper for a map.
-
-
Method Details
-
jsonObj
Constructor function. -
jsonObj
Create a JsonObj from a JSON string. -
keySet
-
val
-
obj
-
arr
-
has
-
get
Deprecated.Get mandatory value of typeev.- Returns:
- the requested value if it exists and has the required type
-
opt
Deprecated.Get optional value of typeev.- Returns:
- some if the value exists and has the required type, none otherwise
-
getObj
Deprecated.Get mandatory JSON object. -
optObj
Deprecated.Get an optional JSON object.
-