[Top] 
Tools 
Tools.JSON 
Tools.JSON.JSONObject 
 | 
    
    
    Method Tools.JSON.JSONObject()->accumulate()
    
 
- Method
accumulate
- 
  JSONObject accumulate(string key, object val)  
- Description
- 
  Accumulate values under a key. It is similar to the put method except
 that if there is already an object stored under the key then a
 JSONArray is stored under the key to hold all of the accumulated values.
 If there is already a JSONArray, then the new value is appended to it.
 In contrast, the put method replaces the previous value. 
 
- Parameter key
- 
  A key string. 
 
- Parameter val
- 
  An object to be accumulated under the key. 
 
- Returns
- 
  this 
 
     
     |