Javadoc
Appends
value to the array already mapped to
name. If
this object has no mapping for
name, this inserts a new mapping.
If the mapping exists but its value is not an array, the existing
and new values are inserted in order into a new array which is itself
mapped to
name. In aggregate, this allows values to be added to a
mapping one at a time.
Note that
append(String, Object) provides better semantics.
In particular, the mapping for
name will always be a
JSONArray. Using
accumulate will result in either a
JSONArray or a mapping whose type is the type of
valuedepending on the number of calls to it.