forked from bblanchon/ArduinoJson
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