Moved JsonArray::getString() and JsonHashTable::getString() into the .cpp files

This commit is contained in:
Benoit Blanchon
2014-01-11 15:15:52 +01:00
parent ef8c0ceea8
commit 92e88c1a01
4 changed files with 16 additions and 12 deletions

View File

@ -42,4 +42,10 @@ JsonArray JsonHashTable::getArray(char* key)
{
jsmntok_t* token = getToken(key);
return JsonArray(json, token);
}
char* JsonHashTable::getString(char* key)
{
jsmntok_t* token = getToken(key);
return token != 0 ? json + token->start : 0;
}