JSON objects and JSON arrays consume memory until they are deleted manually. Therefore it is important to delete them when they are not needed any longer.
In case the handle of a deleted JSON object or a deleted JSON array is passed to a function, nothing happens. The function returns false.