json中类型转换问题,[{}]是错误的格式,例:
JSONObject.parseObject("[{\"type\":\"slider\",\"show\":\"true\",\"start\":1,\"end\":100}]");
正确的写法:
JSONObject[] dataZoom = new JSONObject[]{JSONObject.parseObject("{\"type\":\"slider\",\"show\":\"true\",\"start\":1,\"end\":100}")};
本文转自:https://blog.csdn.net/qq_33101355/article/details/80112179