使用函数式编程将字符串转换为JSONObject
JSONObject jsonObject = Optional.ofNullable(orderItemWithBLOBs.getCustomData()) .map(JSONObject::parseObject) .orElse(new JSONObject());
AI 优化版
原文地址:https://www.cveoy.top/t/topic/nARF 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
JSONObject jsonObject = Optional.ofNullable(orderItemWithBLOBs.getCustomData()) .map(JSONObject::parseObject) .orElse(new JSONObject());
原文地址:https://www.cveoy.top/t/topic/nARF 著作权归作者所有。请勿转载和采集!