Updated FAQ (markdown)

Benoît Blanchon
2016-11-13 20:46:21 +01:00
parent 262e191af6
commit 10fdb42cc6

6
FAQ.md

@@ -126,7 +126,7 @@ For the example above, it would be:
const int BUFFER_SIZE = JSON_OBJECT_SIZE(3) + JSON_ARRAY_SIZE(2); const int BUFFER_SIZE = JSON_OBJECT_SIZE(3) + JSON_ARRAY_SIZE(2);
StaticJsonBuffer<BUFFER_SIZE> jsonBuffer; 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. You can use the [JsonBuffer size calculator](https://bblanchon.github.io/ArduinoJson/) 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. 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. 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.
@@ -148,7 +148,7 @@ See issues [#243](https://github.com/bblanchon/ArduinoJson/issues/243) and [#302
| Weather Underground (one location) | 882 | 1424 | 2816 | 2912 | | Weather Underground (one location) | 882 | 1424 | 2816 | 2912 |
| Forecast.io | 13442 | 21588 | 42648 | 44232 | | Forecast.io | 13442 | 21588 | 42648 | 44232 |
Theses results were generated with the [JsonBuffer size calculator](https://rawgit.com/bblanchon/ArduinoJson/master/scripts/buffer-size-calculator.html). Theses results were generated with the [JsonBuffer size calculator](https://bblanchon.github.io/ArduinoJson/).
### I found a memory leak in the library! ### I found a memory leak in the library!
@@ -345,7 +345,7 @@ See also:
* [What are the differences between StaticJsonBuffer and DynamicJsonBuffer?](#what-are-the-differences-between-staticjsonbuffer-and-dynamicjsonbuffer) * [What are the differences between StaticJsonBuffer and DynamicJsonBuffer?](#what-are-the-differences-between-staticjsonbuffer-and-dynamicjsonbuffer)
* [How to determine the buffer size?](#how-to-determine-the-buffer-size) * [How to determine the buffer size?](#how-to-determine-the-buffer-size)
* [JsonBuffer size calculator](https://rawgit.com/bblanchon/ArduinoJson/master/scripts/buffer-size-calculator.html) * [JsonBuffer size calculator](https://bblanchon.github.io/ArduinoJson/)
* Issues [#360](https://github.com/bblanchon/ArduinoJson/issues/360), [#372](https://github.com/bblanchon/ArduinoJson/issues/372), [#374](https://github.com/bblanchon/ArduinoJson/issues/374) and [#380](https://github.com/bblanchon/ArduinoJson/issues/380) * Issues [#360](https://github.com/bblanchon/ArduinoJson/issues/360), [#372](https://github.com/bblanchon/ArduinoJson/issues/372), [#374](https://github.com/bblanchon/ArduinoJson/issues/374) and [#380](https://github.com/bblanchon/ArduinoJson/issues/380)