JsonArrayMapperResponse

data class JsonArrayMapperResponse(val destinationField: JsonMapperDestinationFieldResponse? = null, val keys: List<String>, val sourceField: JsonMapperSourceFieldResponse? = null)

A component that allows parsing a value from sourceField as a json array, match a key to each parsed value from keys, and output the key-value map to destinationField field.

Constructors

Link copied to clipboard
constructor(destinationField: JsonMapperDestinationFieldResponse? = null, keys: List<String>, sourceField: JsonMapperSourceFieldResponse? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Define a destination field to which the parsed output will be written. The output is a map, it's keys is the given keys array and the matching values are the parsed json array elements.

Link copied to clipboard

Define the names of the keys in the resulting map. The input json array elements are mapped in order, one for every key.

Link copied to clipboard

Define a source field from which a json array will be read and parsed to it's elements. The number of elements in the json array is expected to be the same as the length of keys.