mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-09-27 07:20:56 +02:00
Updated Avoiding pitfalls (markdown)
@@ -53,6 +53,8 @@ For this reason, **you should not use a global variable** for your `JsonBuffer`.
|
||||
|
||||
The best practice is to **declare it in a local scope**, so that it's discarded as soon as possible. My advice it to declare it in a function which unique role is to handle the JSON serialization.
|
||||
|
||||
See [FAQ: The first parsing succeeds, why does the next ones fail?](https://github.com/bblanchon/ArduinoJson/wiki/FAQ#the-first-parsing-succeeds-why-does-the-next-ones-fail)
|
||||
|
||||
#### 5. Keep the JSON string in memory long enough
|
||||
|
||||
The library never make memory duplication.
|
||||
|
Reference in New Issue
Block a user