Added a test of an empty hashtable

This commit is contained in:
Benoît Blanchon
2014-06-27 13:00:27 +02:00
parent 48a91a219c
commit ebb257df6e
5 changed files with 94 additions and 16 deletions

View File

@ -0,0 +1,38 @@
/*
* Arduino JSON library
* Benoit Blanchon 2014 - MIT License
*/
#pragma once
#include "JsonObjectBase.h"
template<int N>
class JsonHashTable : public JsonObjectBase
{
public:
using JsonObjectBase::writeTo;
private:
/* struct KeyValuePair
{
const char* key;
ObjectContainer value;
};*/
virtual void writeTo(StringBuilder& sb)
{
sb.append("{");
/*for (int i = 0; i < itemCount; i++)
{
if (i>0) sb.append(",");
writeObjectTo(items[i], sb);
}*/
sb.append("}");
}
};