mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01: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) | ||||
| { | ||||
| 	if (token->type != JSMN_PRIMITIVE) return 0; | ||||
|     if (token == 0 || token->type != JSMN_PRIMITIVE) return 0; | ||||
|  | ||||
|     // "true" | ||||
|     if (json[token->start] == 't') return true; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user