If you are unwilling to parse data, I think you should use Java.io.RandomAccessFile
. The package will allow you to seek to the end of the file, (or 1 before the end), and write your new data. Keep in mind, the writer overrwrites strings, it does not insert them, so assuming you want to add "key": property,
, you'll need to remember to insert ,"key": property}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…