$$form
Converts an object to Form URL-Encoded string (a.k.a Query String)
- Array values will be treated as multiple values for the same key (so the key will be duplicated in the result for each of the values)
Usage​
{
"$$form": { /* key-values */ }
}
"$$form:{input}"
Returns​
string
Examples​
Input
Definition
Output
{
"a": "1",
"b": "B",
"c": "true"
}
{
"$$form": "$"
}
"a=1&b=B&c=true"
{
"a": [1, 2],
"c": true
}
{
"$$form": "$"
}
"a=1&a=2&c=true"
{
"a": "1",
"b": "B",
"c": "true"
}
"$$form:$"
"a=1&b=B&c=true"
{
"a": [1, 2],
"c": true
}
"$$form:$"
"a=1&a=2&c=true"