Is it risky to use a JSON file instead of a SQL database?

For my small forum/blog project, I’m storing posts in a JSON file to serve web, desktop, and mobile apps. Is this approach secure? For example:

[{
  "uid": 101,
  "timestamp": 1630000000,
  "heading": "Demo Post",
  "bodyText": "Sample content"
}]

Storing posts in a JSON file for a small project can be a convenient and quick solution; however, it comes with limitations and potential risks that differ from using a SQL database. Without careful handling, JSON files risk data integrity issues, especially if concurrent access is expected. It is crucial to ensure proper file permissions and secure coding practices to mitigate security vulnerabilities. While JSON can be sufficient for limited use-cases, careful consideration should be given to scaling and more robust security measures as the project grows, which may warrant moving to a database solution.