A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://arduinojson.org/v6/api/jsonarray/clear/ below:

JsonArray::clear() | ArduinoJson 6

Description

JsonArray::clear() removes all elements from the array pointed by the JsonArray.

If the JsonArray is null/unbound, this function does nothing.

Causes memory leaks ⚠️

Because JsonDocument contains a monotonic allocator, this function cannot release the memory associated with the removed value.
Consequently, you cannot call this function in a loop; otherwise, the JsonDocument will overflow.

Prefer JsonDocument::clear() which doesn’t leak memory.

Signatures See also
  1. Home
  2. Version 6
  3. API
  4. JsonArray
  5. clear()

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4