@SimonSchroeder said in QByteArray to QVariantMap while conserving numerical type:
In that case you need to specify some formatting to make sure the number is written out in a way that makes it clear it is floating point.
I don't follow you here. How would any kind of formatting of the number at sender side make any difference to the result received at the receiver side using a JSON parser to read it which will return a "numeric"/QJsonValue::Type::Double? Other than sending it is a string type and doing the numeric conversion at receiver side, which is quite different.