The character used to separate array elements when using {arrayFormat: 'separator'}
.
Decode the keys and values. URI components are decoded with decode-uri-component
.
Parse the value as a boolean type instead of string type if it's a boolean.
Parse the fragment identifier from the URL and add it to result object.
Parse the value as a number type instead of string type if it's a number.
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.
'none'
bracket
: Parse arrays with bracket representation:index
: Parse arrays with index representation:comma
: Parse arrays with elements separated by comma:separator
: Parse arrays with elements separated by a custom character:bracket-separator
: Parse arrays (that are explicitly marked with brackets) with elements separated by a custom character:colon-list-separator
: Parse arrays with parameter names that are explicitly marked with:list
:none
: Parse arrays with elements using duplicate keys: