From 6ee03f31a4de1296befb243ea46b8ba4478a2bca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Blanchon?= Date: Tue, 6 Oct 2015 21:16:47 +0200 Subject: [PATCH] Created FAQ (markdown) --- FAQ.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 FAQ.md diff --git a/FAQ.md b/FAQ.md new file mode 100644 index 0000000..b4df5d3 --- /dev/null +++ b/FAQ.md @@ -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. \ No newline at end of file