如何从文件java中的特定行更新特定字符串

时间:2019-02-19 22:52:32

标签: java json file

我有以下json文件,我想通过搜索ID并更改大小来查找行

{"BookDetails":[{"Suggested":"SoftwareEngnering","Size":"4MB","Title":"Introductionto softwareengnering","Author":" Tomas Jefferson ","page":1232,"Edition":"7th"}],"ID":"Lib@MU01"}

{"BookDetails":[{"Suggested":"Electrical Engnering","Size":"8MP","Title":"Electric And Life","Author":" Samson Stephen ","page":980,"Edition":"1th"}],"ID":"Lib@MU02"}

0 个答案:

没有答案