Query params flattener
Last updated
Last updated
[io/http/utils/Query params flattener]
Flattens query parameters received via params
expressed as a dictionary, into an array of single query parameters as key-value pairs sent via flattened
.
Example:
[{"key": "name", "value": "Sophie"}, {"key": "friends", "value": ["Liya", "Owen"]}]@1 received via params
[{"key": "name", "value": "Sophie"}, {"key": "friends", "value": "Liya"}, {"key": "friends", "value": "Owen"}]@1 sent via flattened
Keywords: flatten, transform
params: {string: (string or string[])}
Receives query parameters as dictionary.
flattened: {"key": string, "value": string}[]
Sends query parameter key-value pairs individually.