mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-18 21:12:25 +02:00
Fixed bug in JsonObjectBase::getBoolFromToken()
This commit is contained in:
@ -26,7 +26,7 @@ int JsonObjectBase::getNestedTokenCount(jsmntok_t* token)
|
|||||||
|
|
||||||
bool JsonObjectBase::getBoolFromToken(jsmntok_t* token)
|
bool JsonObjectBase::getBoolFromToken(jsmntok_t* token)
|
||||||
{
|
{
|
||||||
if (token->type != JSMN_PRIMITIVE) return 0;
|
if (token == 0 || token->type != JSMN_PRIMITIVE) return 0;
|
||||||
|
|
||||||
// "true"
|
// "true"
|
||||||
if (json[token->start] == 't') return true;
|
if (json[token->start] == 't') return true;
|
||||||
|
Reference in New Issue
Block a user