Skip to content

#valuesFrom

Returns an array of the property values of an object.

#valuesFrom(object)
Category ObjectsValid in Property value
Name Type Description
object path | object The object to read.

array

source.json
{
"obj": { "a": 1, "b": 2 }
}
transformer.json
{
"result": "#valuesFrom($.obj)"
}
output.json
{
"result": [ 1, 2 ]
}

Try it in the playground →

#keysFrom