String toJson(Object data) { try { return palaceJsonEncoder(data); } catch (e) { Logger.c(e); return data.toString(); } }