Objects & Arrays

When you need to describe more than a single value.

Object

A core element of Summit Event Language are objects.

An object is represents a JSON object. For example:

=Object({"attr": 1, "bar": [1, 2, 3]})

As you can see, these objects can be of any depth or complexity, as long as they are JSON-compliant in terms of syntax.

An Object event will send the object it contains downstream. To extract specific data from an object, we can use liquid syntax (dot notation) or a Parser event.

Objects in Summit are commonly used to define configurations and arguments for passing to other events, such as Request, AI, or Browser.

Array

Sometimes you want to store a static list of items. For this, we use Array:

=Array([1,2,3])

Since an array can contain a mix of numbers or strings, the array event reports its length to the ledger. The above array would report 3, and so would this:

=Array([1, 'otter', 'cute'])

And this:

=Array(['sweet', 'home', 'alabama'])