THe only practical way to add data to a JSON file is to add it to the objects(s) you read from the file into your application, then write a new file that includes the old data.
JSON is not a database, it's a data transfer format - and it isn't organised in a way that makes "adding rows" or "adding columns" simple. If you regularly want to change JSON, you are probably better off using a database instead.
Quote:
there is no way to insert a new object? is there is othere way to insert a data
JSON files are text, just that: they aren't structured data until you read them with software the "understands" JSON.
And text files don't insert *anything* the only way to insert even a single character into a text file is to read all the characters up to the insertion point while writing them to a second file, write the new character to the second file, then copy all the other characters over.
When you have finished doing that, you close both the files, delete the original, and rename the new file to the old name.
That's a PITA with text, but with JSON data in a file it's worse, because it's structured in a way that JSON apps can understand and humans (with training) can read but not in a way that means it's easy to do as there is no way to tell where any object in the data starts or ends unless you read and process the JSON data as you go to find the end of the object to want to add something after! Which means ... your app needs to understand JSON extremely well in code you have written to do that as well as how to insert strings into text files!
If you want to insert (or update- or delete-) objects into existing data regularly, don't use JSON: use a proper database where the file format and the library code to handle it is designed to make that both easy and reliable.