mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-08-06 06:04:43 +02:00
Updated FAQ (markdown)
4
FAQ.md
4
FAQ.md
@@ -121,6 +121,8 @@ For the example above, it would be:
|
||||
const int BUFFER_SIZE = JSON_OBJECT_SIZE(3) + JSON_ARRAY_SIZE(2);
|
||||
StaticJsonBuffer<BUFFER_SIZE> jsonBuffer;
|
||||
|
||||
You can use the [JsonBuffer size calculator](https://rawgit.com/bblanchon/ArduinoJson/master/scripts/buffer-size-calculator.html) to get the values for common platforms.
|
||||
|
||||
In the second case, let's say you dynamically generate a JSON object tree of a random complexity so you can't put a limit based on that. But on the other hand, you don't want your program to crash because the object tree doesn't fit in memory.
|
||||
The solution here is to determine how much memory is available, or in other words how much memory you can afford for the JSON object tree.
|
||||
|
||||
@@ -141,6 +143,8 @@ See issues [#243](https://github.com/bblanchon/ArduinoJson/issues/243) and [#302
|
||||
| Weather Underground (one location) | 882 | 1424 | 2816 | 2912 |
|
||||
| Forecast.io | 26818 | 43192 | 85352 | 88448 |
|
||||
|
||||
Theses results were generated with the [JsonBuffer size calculator](https://rawgit.com/bblanchon/ArduinoJson/master/scripts/buffer-size-calculator.html).
|
||||
|
||||
|
||||
### I found a memory leak in the library!
|
||||
|
||||
|
Reference in New Issue
Block a user