Skip to main content
Version: Streamsheets 3.0

DICTIONARY

Creates a list of JSON Objects using the given keys and values.

Syntax

=DICTIONARY(Range, [Horizontal])

Arguments

NameTypeDescription
RangeRangeRange providing the source data, that will be used for the JSON. The left or top cells will feed the keys and the bottom or right the values.
Horizontal (optional)BooleanFALSE, if keys are aligned vertical, TRUE if horizontal.

Default value: "FALSE"

Return

TypeDescription
JSON{ JSON } as a placeholder for a list of JSON objects, if successful otherwise an error code.

Examples

ABC
1ElementA0
2ElementBTRUE
3ElementCText
4ElementDData
5
6ProductQualityPrice
7a112.99
8b314.99
FormulaResultComment
=WRITE(OUTBOXDATA("Message", "NewItem"), DICTIONARY(A1:B4), FALSE), "Dictionary")
Appending an object to a message. The message content will look as follows
=WRITE(OUTBOXDATA("Message","NewItem2"), DICTIONARY(A6:C8,FALSE,TRUE),"Dictionary")