Package dev.drtheo.autojson.adapter
Interface JsonSerializationContext.Array
- All Superinterfaces:
JsonContext,SchemaHolder
- All Known Implementing Classes:
JsonStringBuilder
- Enclosing interface:
- JsonSerializationContext
-
Method Summary
Modifier and TypeMethodDescriptiondefault JsonSerializationContext.Arrayarray$element(Object value) Puts a value in the currently building array.default JsonSerializationContext.Arrayarray$element(Object value, Type type) Puts a value in the currently building array.array$element(T value, Type type, Schema<T> schema) Methods inherited from interface dev.drtheo.autojson.adapter.JsonContext
auto, schema, schemaHolder
-
Method Details
-
array$element
Puts a value in the currently building array.- Parameters:
value- the value to put.- Returns:
- The array context.
- Implementation Note:
- Equivalent to calling
array$element(Object, Type)with theclaasbeingvalue.getClass()
-
array$element
Puts a value in the currently building array.- Parameters:
value- the value to put.type- the type of the value.- Returns:
- The array context.
- Implementation Note:
- Equivalent to calling
array$element(Object, Type, Schema)with theschemabeing supplied by theJsonContext.schema(Type).
-
array$element
-
array$build
JsonSerializationContext.Built array$build()
-