Dictionaries/Objects

Operations

empty

Removes all keys/values from a dict/object. This is equivalent to using the setting the variable to {}

 

{ }
[{"paths":["071651f79538c5be3173b651cc9bcb7e"],"data":{"uuid":"640cc9a1dd7ae3878d61146ebf77a211","val":{"string":"helloworld","int":10,"number":4.2},"width":120,"height":32,"y":0,"step":"Create my_dict","var":"my_dict","x":0,"type":"variable","maxpaths":1}},{"paths":["9105310d3521caac02031125e66e066d"],"data":{"dict\/object":"dict\/object","call":"dict\/object.empty","dict\/object.empty":"empty","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{"obj":"{\"~\":\"my_dict\"}"},"height":32,"width":120,"step":"Empty my_dict","data_to_var":"","y":80,"x":0,"type":"library","maxpaths":1}},{"paths":[],"data":{"uuid":"9105310d3521caac02031125e66e066d","data":"{\"~\":\"my_dict\"}","height":32,"width":120,"step":"Return my_dict","y":160,"x":0,"type":"return","maxpaths":0}}]

Example Response

{"my_dict":{}}

keys

Return a copy of the dict/object's list of keys.

 

{ }
[{"paths":["071651f79538c5be3173b651cc9bcb7e"],"data":{"uuid":"640cc9a1dd7ae3878d61146ebf77a211","val":{"string":"helloworld","int":10,"number":4.2},"width":120,"height":32,"y":0,"step":"Create my_dict","var":"my_dict","x":0,"type":"variable","maxpaths":1}},{"paths":[],"data":{"dict\/object":"dict\/object","call":"dict\/object.keys","dict\/object.keys":"keys","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{"obj":"{\"~\":\"my_dict\"}"},"height":32,"width":120,"step":"Get keys from my_dict","data_to_var":"my_dict_keys","y":80,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"my_dict_keys":["string","int","number"]}

values

Return a copy of the dict/object's list of values.

 

{ }
[{"paths":["071651f79538c5be3173b651cc9bcb7e"],"data":{"uuid":"640cc9a1dd7ae3878d61146ebf77a211","val":{"string":"helloworld","int":10,"number":4.2},"width":120,"height":32,"y":0,"step":"Create my_dict","var":"my_dict","x":0,"type":"variable","maxpaths":1}},{"paths":[],"data":{"dict\/object":"dict\/object","call":"dict\/object.values","dict\/object.values":"values","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{"obj":"{\"~\":\"my_dict\"}"},"height":32,"width":120,"step":"Get values from my_dict","data_to_var":"my_dict_values","y":80,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"my_dict_values":["helloworld",10,4.2]}

querystring

Generates a URL query string from key/value pairs in an dict/object and URI encodes the values.

 

{ }
[{"paths":["071651f79538c5be3173b651cc9bcb7e"],"data":{"uuid":"640cc9a1dd7ae3878d61146ebf77a211","val":{"string":"helloworld","int":10,"number":4.2},"width":120,"height":32,"y":0,"step":"Create my_dict","var":"my_dict","x":0,"type":"variable","maxpaths":1}},{"paths":[],"data":{"dict\/object":"dict\/object","call":"dict\/object.querystring","dict\/object.querystring":"querystring","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{"obj":"{\"~\":\"my_dict\"}"},"height":32,"width":120,"step":"Make query string from my_dict","data_to_var":"query_string","y":80,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"query_string":"t=10&string=helloworld&number=4.2"}

json

Converts and returns dict/object as a JSON string

 

{ }
[{"data":{"type":"variable","step":"dict\/object","var":"obj","val":{"string":"helloworld","int":10,"number":4.2},"maxpaths":1,"uuid":"d7db099a1a3f9e2df693cd4422bb26cb","x":0,"y":0,"width":120,"height":32},"paths":["9148d39266042bc89aff74e46b1a483b"]},{"data":{"type":"library","step":"encode to JSON","call":"dict\/object.json","dict\/object":"dict\/object","dict\/object.json":"json","args":{"obj":"{\"~\":\"obj\"}"},"maxpaths":1,"uuid":"9148d39266042bc89aff74e46b1a483b","x":0,"y":80,"width":120,"height":32,"data_to_var":"result"},"paths":[]}]

Example Response

{"result":"{\"int\": 10, \"string\": \"helloworld\", \"number\": 4.2}"}