| 123456789101112131415161718192021222324 |
- /*
- * Arduino JSON library
- * Benoit Blanchon 2014 - MIT License
- */
- #include "JsonObjectBase.h"
- using namespace ArduinoJson::Parser;
- int JsonObjectBase::getNestedTokenCount(jsmntok_t* token)
- {
- int tokensToVisit = token->size;
- int count = 0;
- while (tokensToVisit)
- {
- count++;
- token++;
- tokensToVisit--;
- tokensToVisit += token->size;
- }
- return count;
- }
|