Added comments

This commit is contained in:
Benoit Blanchon
2014-07-21 20:38:08 +02:00
parent df72419f09
commit 0fc54ba54c
2 changed files with 9 additions and 0 deletions

View File

@ -11,20 +11,24 @@ namespace ArduinoJson
{
namespace Parser
{
// A JSON key-value pair, as a part of a JSON object
class JsonPair : JsonToken
{
public:
// Convert a JsonToken to a JsonPair
JsonPair(JsonToken token)
: JsonToken(token)
{
}
// Get the key
const char* key()
{
return getText();
}
// Get the value
JsonValue value()
{
return nextSibling();