Method Clear Clear() Clears all the items in the JSONObject and brings the count of attributes to 0. Declaration void Clear()