mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-08-10 08:04:42 +02:00
Created FAQ (markdown)
11
FAQ.md
Normal file
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.
|
Reference in New Issue
Block a user