Package jodd.json.impl
Class ArraysJsonSerializer<K>
- All Implemented Interfaces:
TypeJsonSerializer<Object>
Arrays serializer. May be overridden for specific types for better performances.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected KReturns array's element at given index.protected intReturns array's length.voidserializeValue(JsonContext jsonContext, Object array) Performs the serialization of the value.Methods inherited from class jodd.json.impl.ValueJsonSerializer
serialize
-
Constructor Details
-
ArraysJsonSerializer
public ArraysJsonSerializer()
-
-
Method Details
-
getLength
Returns array's length. -
get
Returns array's element at given index. -
serializeValue
Description copied from class:ValueJsonSerializerPerforms the serialization of the value.- Specified by:
serializeValuein classValueJsonSerializer<Object>
-