void json_string(Serial *serial, const char *name, const char *value, int more) { putKeyAndColon(serial, name); if (value) { putQuotedStr(serial, value); } else { putNull(serial); } putCommaIfNecessary(serial, more); }
void JsonObject::putNDateTime(const QString& key, const QDateTime& value) { if (value.isNull()) putNull(key); else putDateTime(key, value); }
void json_null(Serial *serial, const char *name, int more) { putKeyAndColon(serial, name); putNull(serial); putCommaIfNecessary(serial, more); }
void JsonObject::putNString(const QString& key, const QString& value) { if (value.isNull()) putNull(key); else putString(key, value); }