From af8342df4d5a6024f0b34add22d2c1693ce59277 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Blanchon?= Date: Wed, 1 Jun 2016 09:15:47 +0200 Subject: [PATCH] Updated FAQ (markdown) --- FAQ.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/FAQ.md b/FAQ.md index 6aec6a7..53a9812 100644 --- a/FAQ.md +++ b/FAQ.md @@ -123,7 +123,9 @@ The solution here is to determine how much memory is available, or in other word The third solution is to run your program an print `jsonBuffer.size()` to get the current size of the buffer. -**WARNING**: if you use `String` to create your JSON keys or values, there content will automatically be duplicated in the `JsonBuffer`, so you need to add the total length of all strings in the size of the `JsonBuffer`. +**WARNING 1**: if you pass a `String` or a `const char*` to `parseArray()` or `parseObject`, the `JsonBuffer` will make a copy of the input, so it will need to be significantly bigger. + +**WARNING 2**: if you use `String` to create your JSON keys or values, their content will automatically be duplicated in the `JsonBuffer`, so you need to add the total length of all strings in the size of the `JsonBuffer`. See issue [#243](https://github.com/bblanchon/ArduinoJson/issues/243)