{"birthday":"1900-01-01","comments":"这是一个注释","major":[{"bytes":[{},{},{},{},{},{}],"empty":false},{"bytes":[{},{},{},{},{},{},{},{},{}],"empty":false}],"car":null,"school":"蓝翔","name":"王小二","has_girlfriend":false,"house":null,"age":25.2}
打印不出来Major什么鬼
打印不出来Major什么鬼
2019-11-27
我按照代码写输出的结果会有中文乱码,通过下面对代码进行改动就不会出现这个问题。
String content = FileUtils.readFileToString(file,"UTF-8");
String content = FileUtils.readFileToString(file,"UTF-8");
2019-09-05
最新回答 / 带带大师兄i
private static void JSONObject() {Object nullObj = null; JSONObject wangxiaoer = new JSONObject();wangxiaoer.put("name", "王小二");wangxiaoer.put("age", 25.2);wangxiaoer.put("birthday", "1990-01-01");wangxiaoer.put("major" ,new String[]{"炒菜","挖掘机"});wangxia...
2019-08-27