Berserk Docs
Scalar FunctionsDynamic / JSON Functions

bag_set_key

Return the property bag with the given key set to `value`, inserting

Syntax

bag_set_key(bag, key, value)

Parameters

Prop

Type

Returns: dynamic

Examples

Example 1

print bag_set_key(dynamic({"a":1}), "b", 2)
print_0 (dynamic)
{"a":1,"b":2}

On this page