Read and Write in Next Js 13

i am trying to read and write db.json file from api folder i am unable to do it
can anyone share code snippit which works on next js 13 api folder?
Was this page helpful?