android原生操作json数据
主要是两个类 JSONObject 操作对象 JONSArray操作json数组
对象转json
//创建学生对象
Student student=new Student();
student.setAge(23);
student.setClazz(六年级);
student.setName(王二麻子);
//创建JSONObject
JSONObject jsonObject=new JSONObject();
//键值对赋值
jsonObject.put(age,st