Interface IJsonBuilder<A,O>
- Type Parameters:
A- Type of a JSON array.O- Type of a JSON object.
public interface IJsonBuilder<A,O>
Builder for creating JSON data. Allows you to use different JSON libraries.
- Since:
- 8.2.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a value to an array.Gets the value at the specified index from the array.voidarrayRemove(A arary, int index) Removes the value at the specified index from the array.voidSets the value at the specified index in the array.intGets the size of an array.Gets the runtime type of the arrays.newArray()Creates a new array.Creates a new object.Gets the value of the specified key from the object.objectKeys(O object) Gets the keys of an object.voidSets the value of the specified key in the object.voidobjectRemove(O object, String key) Removes the value of the specified key from the object.Gets the runtime type of the objects.
-
Method Details
-
arrayAdd
-
arrayGet
-
arrayRemove
Removes the value at the specified index from the array.- Parameters:
arary- Array to remove the value from.index- Index of the value to remove.
-
arraySet
-
arraySize
Gets the size of an array.- Parameters:
array- Array to get the size of.- Returns:
- Size of the array.
-
arrayType
-
newArray
-
newObject
-
objectGet
-
objectKeys
-
objectPut
-
objectRemove
-
objectType
-