A RetroSearch Logo

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

Search Query:

Showing content from https://arduinojson.org/v6/api/jsondocument/isnull/ below:

JsonDocument::isNull() | ArduinoJson 6

Description

JsonDocument::isNull() tells whether the JsonDocument is empty, i.e. if the document’s root is null.

Signature Return value

JsonDocument::isNull() returns a bool that tells if the JsonDocument is empty:

Example Result is true
DynamicJsonDocument doc(1024);
doc.isNull(); // true
serializeJson(doc, Serial); // prints "null"
Result is false
DynamicJsonDocument doc(1024);
doc.to<JsonArray>();
doc.isNull(); // false
serializeJson(doc, Serial); // prints "[]"
See also
  1. Home
  2. Version 6
  3. API
  4. JsonDocument
  5. isNull()

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