# jsondb **Repository Path**: guoshichang/jsondb ## Basic Information - **Project Name**: jsondb - **Description**: 通过 操作 json 将list的数据保存到文件中 实现增删改查和高扩展性 要求保存的bean需要继承含有id属性和createtime属性的Record属性中 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-07-07 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #jsondb 通过 操作 json 将list的数据保存到文件中 实现增删改查和高扩展性 要求保存的bean需要继承含有id属性和createtime属性的Record属性中 ### Demo ``` public static void main(String[] args) { RecordService recordService = new RecordService<>(Record.class,"C:\\Users\\Administrator\\Desktop\\", "record.json"); Record record=new Record(null, new Date().getTime()); //保存 recordService.saveRecord(record); //删除 //recordService.deletedOne("1"); //查出所有对象 //List all=recordService.getAllRecords(); //查询单个 //List all=recordService.getAllRecords(); //recordService.getOne(records, "1"); //过滤结果 //List all=recordService.filterList(records, fileFilter); } ``` ![输入图片说明](https://git.oschina.net/uploads/images/2017/0707/164715_7e100632_766484.png "在这里输入图片标题")