mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-18 04:52:22 +02:00
Generator: added empty array test
This commit is contained in:
14
JsonGeneratorTests/JsonArray.cpp
Normal file
14
JsonGeneratorTests/JsonArray.cpp
Normal file
@ -0,0 +1,14 @@
|
||||
/*
|
||||
* Arduino JSON library
|
||||
* Benoit Blanchon 2014 - MIT License
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "JsonArray.h"
|
||||
|
||||
void JsonArray::writeTo(char* buffer, size_t bufferSize)
|
||||
{
|
||||
strncpy(buffer, "[]", bufferSize);
|
||||
|
||||
}
|
Reference in New Issue
Block a user