Please use QJson::Serializer instead of hand-coding this :)