-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enum value not serialized as number #1197
Comments
Hi @loewekordel, Thank you very much for reporting this issue. jsonBuffer["err"] = (int)errList[i].err; Best regards, |
Hi @bblanchon, I appreciate the quick analysis and fix! Thank you very much! Best regards, |
The fix will be included in 6.15 in one or two weeks. |
This fix was included in ArduinoJson 6.15.0. |
platform: esp8266
ide: vscode + pio
ArduinoJson version: 6.14.1
Espressif 8266 version: 2.3.2
Arduino core version: 2.6.3
For error logging purposes, I created an enum and tried to serialize it, but the the enum number is not serialized. Instead true or false are written to the serialized buffer?
enum:
ArduinoJson definitions:
Serialization:
Serial output (sendBuffer): {"cmd":"log","time":1582671207,"err":true}
I hope the explanation is good enough.
I appreciate your effort and would be very thankful for a hint.
The text was updated successfully, but these errors were encountered: