Skip to main content

$$object

Reduces an array of entries into an object

note

*Entry is in the form of [ key, value ]

Usage​

{
"$$object": [ /* entries */ ]
}
"$$object:{input}"

Returns​

object

Arguments​

ArgumentTypeValuesRequired / Default ValueDescription
PrimaryarrayYesArray of entries (in the form of [key, value])

Examples​

Input

Definition

Output

[
["a", 1],
["b", true],
["c", "C"]
]
{ "$$object": "$" }
{
"a": 1,
"b": true,
"c": "C"
}
[
[0, 1],
[1, true],
[2, "C"]
]
{ "$$object": "$" }
{
"0": 1,
"1": true,
"2": "C"
}
[
["a", 1],
["b", true],
["c", "C"]
]
"$$object:$"
{
"a": 1,
"b": true,
"c": "C"
}
[
[0, 1],
[1, true],
[2, "C"]
]
"$$object:$"
{
"0": 1,
"1": true,
"2": "C"
}