Skip to main content

$$object

Reduces an array of entries into an object

note

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

Usage​

{ 
"$$object": /* Array of entries */
}
"$$object:{input}"

Returns​

object

Arguments​

ArgumentTypeValuesRequired / Default ValueDescription
PrimaryarrayYesArray of entries

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"
}
null
"$$object"
{}
0.5
"$$object:$"
{}
"test"
"$$object:$"
{}
false
"$$object:$"
{}
[
[
"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"
}
null
{
"$$object": "$"
}
{}
0.5
{
"$$object": "$"
}
{}
false
{
"$$object": "$"
}
{}
{
"key": 1,
"value": true
}
{
"$$object": [
[
"$.key",
"$.value"
]
]
}
{
"1": true
}
{
"key": "a",
"value": 0.5
}
{
"$$object": [
[
"$.key",
"$.value"
]
]
}
{
"a": 0.5
}