helper.object2entries

Creating an array of key-value pairs from the specified object.

For example, let's say you have an object that looks like this:

{
"foo": "hello",
"bar": "world"
}

It will be converted to an array whose objects will pair data from the source object and their designations:

[
{
"key": "foo",
"value": "hello"
},
{
"key": "bar",
"value": "world"
}
]
View example

Component properties

NameTypeDescription
type*"helper.object2entries"Set component type.
dataanyThe object to convert.
Contact support
Introduction
Getting started
Important tips
Useful recommendations
Working with Toloka
Projects
Pools
Tasks
Results
Project analysis
Toloka settings
Task interface
Template Builder
HTML/CSS/JS editor
Help and support
Frequently asked questionsTroubleshootingSupportGlossary