mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-15 19:42:12 +02:00
Don't add null terminator to each token.
This commit is contained in:
@ -20,11 +20,5 @@ jsmntok_t* JsonParserBase::parse(char* jsonString)
|
||||
if (JSMN_SUCCESS != jsmn_parse(&parser, jsonString, tokens, maxTokenCount))
|
||||
return 0;
|
||||
|
||||
// Add null termination to each token
|
||||
for (int i = 1; i < parser.toknext; i++)
|
||||
{
|
||||
jsonString[tokens[i].end] = 0;
|
||||
}
|
||||
|
||||
return tokens;
|
||||
}
|
Reference in New Issue
Block a user