mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 08:48:30 +01:00
Added tests of comparison operators
This commit is contained in:
@@ -7,7 +7,12 @@
|
||||
#include "Printers.hpp"
|
||||
|
||||
std::ostream& ArduinoJson::operator<<(std::ostream& os,
|
||||
const ArduinoJson::JsonValue&) {
|
||||
os << "JsonValue"; // TODO
|
||||
const ArduinoJson::JsonValue& v) {
|
||||
if (v.is<long>())
|
||||
os << v.as<long>();
|
||||
else if (v.is<double>())
|
||||
os << v.as<double>();
|
||||
else
|
||||
os << "JsonValue"; // TODO
|
||||
return os;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user