improve robustness of json deserialization to avoid complete crashes when errors occur