Created FAQ (markdown)

Benoît Blanchon
2015-10-06 21:16:47 +02:00
parent 86f9d06721
commit 6ee03f31a4

11
FAQ.md Normal file

@@ -0,0 +1,11 @@
#### Why parsing fails?
The parsing functions, `parseArray()` and `parseObject()`, may fail for 3 reasons:
1. The input is not a valid JSON
2. The `StaticJsonBuffer` is too small
3. The `DynamicJsonBuffer` fails to allocate memory
If you're is case 2., you can solve the problem by increasing the size of the `StaticJsonBuffer`or by switching to a `DynamicJsonBuffer`.
If you're in case 3., you may have a memory leak, it up to you to find it. You can try to switch to `StaticJsonBuffer` which is more efficient.