forked from bblanchon/ArduinoJson
Splitted in several files
This commit is contained in:
1 parent
583589c05c
commit
e924bef409
10 files changed
+325
-259
No files matched your search
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* malloc-free JSON parser for Arduino
|
||||
* Benoit Blanchon 2014
|
||||
* MIT License
|
||||
*/
|
||||
|
||||
#include "JsonObjectBase.h"
|
||||
|
||||
int JsonObjectBase::getNestedTokenCounts(int tokenIndex)
|
||||
{
|
||||
int count = 0;
|
||||
|
||||
for (int i = 0; i < tokens[tokenIndex].size; i++)
|
||||
{
|
||||
count += 1 + getNestedTokenCounts(tokenIndex + 1 + i);
|
||||
}
|
||||
|
||||
return count;
|
||||
}
|
||||
Reference in new issue
Block a user