Object literal

A record written in place: field names and their values in curly braces, `{name: expression, name2: expression}`. A field name is an identifier or a string; a value is any expression; the braces may be empty (`{}`) and the members may be written on several lines. The record is a plain value, not a cloud object: it can be passed to a function, returned by a subroutine, kept in a variable, read with the dot (`r.name`) or with get_field, written as JSON by json_encode, and shown by a data list. On the server it is an associative array; on the device a plain object. (2026-11-01, roadmap S2)

Runs on: either side: the compiler places the statement that calls it where the values it uses live.

Format:

{name: expression [, name: expression ...]}

Examples

row = {title: item.name, price: format_number(item.price, 2), mine: item.owner == me}
set_form_values(order_form, {quantity: 1, note: ""})