Toloka documentation

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" }

Component properties

Name

Type

Description

type*

"helper.entries2object"

Set component type

entries

array

Source array of key-value pairs.

entries[]

object

Object parameters.

entries[].key*

string

Key.

entries[].value*

any

Value.