The path to the JSON file.
The object to be added to the JSON file.
const filePath = "data.json"; const id = 1; const content = { name: "John", age: 30 }; addObject(filePath, id, content); Copy
const filePath = "data.json"; const id = 1; const content = { name: "John", age: 30 }; addObject(filePath, id, content);
Generated using TypeDoc
Adds an object to a JSON file.