mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-16 12:02:14 +02:00
26 lines
457 B
C++
26 lines
457 B
C++
#include "JsonHashTable.h"
|
|
|
|
using namespace ArduinoJson::Generator;
|
|
|
|
size_t JsonHashTableBase::printTo(Print& p) const
|
|
{
|
|
size_t n = 0;
|
|
|
|
n += p.write('{');
|
|
|
|
for (int i = 0; i < itemCount; i++)
|
|
{
|
|
if (i > 0)
|
|
{
|
|
n += p.write(',');
|
|
}
|
|
|
|
n += items[i].key.printTo(p);
|
|
n += p.write(':');
|
|
n += items[i].value.printTo(p);
|
|
}
|
|
|
|
n += p.write('}');
|
|
|
|
return n;
|
|
} |