Dictionaries/Objects

Add/Get/Remove

get

Get the value from the provided key from a dict/object.

 

{ }
[{"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.get","dict\/object.get":"get","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{"obj":"{\"~\":\"my_dict\"}","key":"int"},"height":32,"width":120,"step":"Get 'int' from my_dict","data_to_var":"my_dict_int","y":80,"x":0,"type":"library","maxpaths":1}}]

Example Response

{"my_dict_int":10}

add

Add an item to the dict/object.

 

{ }
[{"paths":["071651f79538c5be3173b651cc9bcb7e"],"data":{"uuid":"640cc9a1dd7ae3878d61146ebf77a211","val":{"string":"helloworld"},"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.add","dict\/object.add":"add","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{"obj":"{\"~\":\"my_dict\"}","key":"int","value":10},"height":32,"width":120,"step":"Add int:10 to 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":{"string":"helloworld","int":10}}

update

Update dict/object using another dict/object.

 

{ }
[{"paths":["071651f79538c5be3173b651cc9bcb7e"],"data":{"uuid":"640cc9a1dd7ae3878d61146ebf77a211","val":{"string":"helloworld"},"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.update","dict\/object.update":"update","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{"obj":"{\"~\":\"my_dict\"}","update":{"int":10,"number":4.2}},"height":32,"width":120,"step":"Update 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":{"string":"helloworld","int":10,"number":4.2}}

remove

Remove a key/value from a dict/object.

 

{ }
[{"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.remove","dict\/object.remove":"remove","uuid":"071651f79538c5be3173b651cc9bcb7e","args":{"obj":"{\"~\":\"my_dict\"}","key":"int"},"height":32,"width":120,"step":"Remove 'int' from 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":{"string":"helloworld","number":4.2}}