How to make overwriting json file which contains lines with large names and values? In general, I need the json file to overwrite and change the value of the line that I specified in the program code to another. I need to change only certain lines with values . "3074ce7ffaea0148826be423a2ef6b04": 1} The lines should not affect only the values ​​I have. This number 1 is also present in my json file with the values ​​true, false

    1 answer 1

    Algorithm like this:

    • Read the file.
    • Get an object from a read (using Jackson , for example)
    • Change the values ​​in the object
    • Save object to file

    Specific code examples using Jackson can be found here.