Hello everyone!
I'm trying to deserialize a string into json format, but I get an unsteady error in this deserialization, the NoMemory error. Searching the ArduinoJson documentation, they give some tips to decrease memory usage (How to reduce memory usage? | ArduinoJson 6)
However, I'm trying to follow the tips but I'm not succeeding. The first one, for example, says to deserialize a char[] instead of a String or const char*. But I get this json via mqtt and it's const char*, so how could I convert?
In the fourth option, which is filtering, I can't do it either because the structure of my json is different.
JSON:
{"41201":{"bookingNumber":"","number":41201,"shippedDateStr":"09/06/2021 - 15:37:24","dataStatus":"Porta fechada","sensorPin":18,"active":true,"lockerSize":1,"createdAt":{"_seconds":1623695942,"_nanoseconds":407000000},"updatedAt":{"_seconds":1623695928,"_nanoseconds":746000000},"keycode":"489182","document":"12345678910","status":"Sync","bookedDate":{"_seconds":1623695942,"_nanoseconds":957000000},"deliveredDateStr":"09/06/2021 - 15:39:28","syncDateStr":"21/06/2021 - 19:44:46","nrOfDays":"2","relayPin":23,"qrCode":"10110000000000960003813456212186620210614154122ae3e5f85775b9b0c027f22e403b3a28e"}}
Could someone help me, how can I perform these tips?
thanks!