Appends JSONPrimitive to the array.
You can only attach primitives that have not been attached before. If you really need to re-attach already used primitive then use the Clone function first to deep clone it.
JSONArray Class