ArduinoJson: API Reference

JsonArray::measurePrettyLength()

Description

Gets the length of string produced by JsonArray::prettyPrintTo().

Signature
size_t measurePrettyLength() const
Return value

The number of characters in the JSON string that would be generated by JsonArray::prettyPrintTo().

It doesn’t include the zero-terminator.

Fork me on GitHub