The character used to separate array elements when using {arrayFormat: 'separator'}
.
URL encode the keys and values.
Skip keys with an empty string as the value.
Skip keys with null
as the value.
Note that keys with undefined
as the value are always skipped.
Supports both Function
as a custom sorting function or false
to disable sorting.
If omitted, keys are sorted using Array#sort
, which means, converting them to strings and comparing strings in Unicode code point order.
Strictly encode URI components with strict-uri-encode
. It uses encodeURIComponent
if set to false
. You probably don't care about this option.
'none'
bracket
: Serialize arrays using bracket representation:index
: Serialize arrays using index representation:comma
: Serialize arrays by separating elements with comma:separator
: Serialize arrays by separating elements with character:bracket-separator
: Serialize arrays by explicitly post-fixing array names with brackets and separating elements with a custom character:colon-list-separator
: Serialize arrays with parameter names that are explicitly marked with:list
:none
: Serialize arrays by using duplicate keys: