Return whether this formatter has produced complete JSON.

Synopsis

Declared in <baljsn_simpleformatter.h>

bool
isCompleteJSON() const;

Description

Return true if this SimpleFormatter has formatted a complete JSON object, where all open* calls have been balanced by their corresponding close* calls. Note that a default‐constructed SimpleFormatter will return false ‐ an empty string is not valid JSON.

Return Value

true if a complete JSON value has been formatted, and false otherwise

Created with MrDocs