helper.entries2object

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

For example, let's say you have an array like this:

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

It is converted to an object whose elements consist of the values of the original array:

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

Component properties

NameTypeDescription
type*"helper.entries2object"Set component type.
entriesarraySource array of key-value pairs.
entries[]objectObject parameters.
entries[].key*stringKey.
entries[].value*anyValue.
Contact support

Last updated: March 29, 2023

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
FAQTroubleshootingSupportGlossary