You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Folks, I have just upgraded from version 5 to 6, and after a couple of modifications required for version 6 I still can't save to SPIFFS using serializeJson
Platform: ESP8266 / Testing on ESP12e
I prepared a sample sketch and I can't spot the issue. The similar code on AJson 5 works very well.
Would you advise please? Much appriciate.
Your program read the file twice.
When you call deserializeJson(), the read pointer is already at the end of the file, so it doesn't find any JSON input and returns IncompleteInput (there is no dedicated error code for an empty input).
Simply remove the call to readBytes() and your program will work:
Hi Folks, I have just upgraded from version 5 to 6, and after a couple of modifications required for version 6 I still can't save to SPIFFS using serializeJson
I prepared a sample sketch and I can't spot the issue. The similar code on AJson 5 works very well.
Would you advise please? Much appriciate.
The text was updated successfully, but these errors were encountered: