Returns true if the primitive contains Array.
If the primitive is a array then you can safely type cast the primitive into JSONArray object.
JSONPrimitive Class