mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-16 03:52:16 +02:00
Serialize floats in objects
This commit is contained in:
@ -124,6 +124,9 @@ size_t JsonObject::printTo(Print& p) const
|
||||
break;
|
||||
}
|
||||
|
||||
if (childValue->type >= JSON_DOUBLE_0_DECIMALS)
|
||||
n += p.print(childValue->content.asDouble, childValue->type - JSON_DOUBLE_0_DECIMALS);
|
||||
|
||||
if (child->next)
|
||||
{
|
||||
n += p.write(',');
|
||||
|
Reference in New Issue
Block a user