Arduinojson: Special character in JSON string gives "Deserialization failed: NotSupported"

Created on 14 May 2020  路  3Comments  路  Source: bblanchon/ArduinoJson

Arduino IDE
ArduinoJson ver 6.15.1
ESP32


I have a JSON string where one field contains a 'special character' (in this case the Norwegian character '酶' used in a device name).
This causes the deserialization to fail with this message: _Deserialization failed: NotSupported_

By replacing the special character with 'o' the deserialization works as expected.

Is this a bug, or is there a list of characters that must be avoided in the JSON string?

This is the JSON string that fails (MQTT output from Domoticz):
{
"Battery" : 255,
"RSSI" : 12,
"description" : "",
"dtype" : "General",
"hwid" : "22",
"id" : "00087433",
"idx" : 5433,
"name" : "Str酶mpris",
"nvalue" : 0,
"stype" : "Custom Sensor",
"svalue1" : "16.83",
"unit" : 1
}

question

All 3 comments

Hi @ArnieO,

See:

Best regards,
Benoit

Yepp, that works!
Impeccable - merci beaucoup!

You're welcome!
Thank you for using ArduinoJson.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DeltaVetal26 picture DeltaVetal26  路  3Comments

koffienl picture koffienl  路  3Comments

nardev picture nardev  路  5Comments

mhazley picture mhazley  路  4Comments

ghost picture ghost  路  7Comments