Skip to main content

$$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": /* undefined */
}
"$$form:{input}"

Returns​

string - form url-encoded string

Arguments​

ArgumentTypeValuesRequired / Default ValueDescription
PrimaryobjectYes

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"