This version is out of date, covering development from v9.0.0 to v9.3.0. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

Tinderbox v9 Icon


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Altered: 

 Function   [other Function type actions]

 List   [operators of similar scope]

 Stream parsing   [other Stream parsing operators]



Stream.json.each{ action(s) }

If the top-level element is an array, rebinds the JSON object in turn to each array element. After calling the action block for each element, the JSON object is restored.

For example, if the value of $MyString is [{"price":1}, {"price",2}], then

	$MyString.json.each{$MyList += json["price"]*3;}

would set $MyList to "3;6".