dictionary
Converts a raw string input to a dictionary value. A dictionary is a collection of key-value pairs, where keys are strings and values can be expressed in two ways:
Inline, in the format
- key: value
.Nested dictionaries, in the format:
- key
- value
Content copied to clipboard
Dictionary example, of type DictionaryValue<DictionaryValue<StringValue>>
:
- keyA:
- keyAA: valueAA
- keyB:
- keyBA: valueBA
- keyBB: valueBB
- keyC:
- keyCA: valueCA
Content copied to clipboard
Return
a new DictionaryValue from the raw input
Parameters
raw
string input to parse the dictionary from
context
context to retrieve the pipeline from
See also
Throws
if the raw input cannot be converted to a dictionary