mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-31 11:17:34 +02:00
Remove VariantData::isEnclosed()
This commit is contained in:
@ -34,7 +34,7 @@ class JsonDeserializer {
|
|||||||
|
|
||||||
err = parseVariant(variant, filter, nestingLimit);
|
err = parseVariant(variant, filter, nestingLimit);
|
||||||
|
|
||||||
if (!err && latch_.last() != 0 && !variant.isEnclosed()) {
|
if (!err && latch_.last() != 0 && variant.isFloat()) {
|
||||||
// We don't detect trailing characters earlier, so we need to check now
|
// We don't detect trailing characters earlier, so we need to check now
|
||||||
return DeserializationError::InvalidInput;
|
return DeserializationError::InvalidInput;
|
||||||
}
|
}
|
||||||
|
@ -147,10 +147,6 @@ class VariantData {
|
|||||||
return type() == VALUE_IS_NULL;
|
return type() == VALUE_IS_NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isEnclosed() const {
|
|
||||||
return !isFloat();
|
|
||||||
}
|
|
||||||
|
|
||||||
void setBoolean(bool value) {
|
void setBoolean(bool value) {
|
||||||
setType(VALUE_IS_BOOLEAN);
|
setType(VALUE_IS_BOOLEAN);
|
||||||
content_.asBoolean = value;
|
content_.asBoolean = value;
|
||||||
|
Reference in New Issue
Block a user