Package org.opencastproject.util
Class Jsons
java.lang.Object
org.opencastproject.util.Jsons
JSON builder based on json-simple.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final classstatic class -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Jsons.ArrAppend a list of arrays into one.static Jsons.ObjMerge a list of objects into one (last one wins).static Jsons.ArrCreate an array.static Jsons.ArrCreate an array.static Jsons.ValgetVal(Jsons.Prop prop) Get the value from a property.static BooleanCheck if a value is notZERO_VAL.static Jsons.Objobj(Jsons.Prop... ps) Create an object.static Jsons.PropCreate a property.static Jsons.PropCreate a property.static Jsons.PropCreate a property.static Jsons.PropCreate a property.static Jsons.PropCreate a property.static Jsons.Valstatic Stringstatic Stringstatic Jsons.Valstatic Jsons.Valstatic Jsons.Valstatic Jsons.Val
-
Field Details
-
Method Details
-
notZero
Check if a value is notZERO_VAL. -
getVal
Get the value from a property. -
toJson
-
toJson
-
obj
Create an object. -
arr
Create an array. -
arr
Create an array. -
v
-
v
-
stringVal
-
v
-
v
-
p
Create a property. -
p
Create a property. Passing none is like settingZERO_VALwhich erases the property. -
p
Create a property. Convenience. -
p
Create a property. Convenience. -
p
Create a property. Convenience. -
append
Merge a list of objects into one (last one wins). -
append
Append a list of arrays into one.
-