Redesigned JsonVariant to leverage converting constructors instead of assignment operators

This commit is contained in:
Benoit Blanchon committed 2015-05-23 15:32:50 +02:00
1 parent 08d05df00e
commit 756c279cdc
44 files changed
+934 -649

No files matched your search

@@ -16,8 +16,8 @@ void setup() {
root["time"] = 1351824120;
JsonArray& data = root.createNestedArray("data");
data.add(48.756080, 6); // 6 is the number of decimals to print
data.add(2.302038, 6); // if not specified, 2 digits are printed
data.add(double_with_n_digits(48.756080, 6));
data.add(double_with_n_digits(2.302038, 6));
root.printTo(Serial);
// This prints: