MV How to create a json when the player saves a game

Hello,
I am creating a game in RPG Maker MV and I want to load some game data into a web page and I thought the easiest way would be to generate a json when the player saves the game and then load the save data into it, but I can't find the way to do it. I'm a beginner at plugins, so I'd really appreciate some help.
sorry if my english is not the best

Original thread: https://forums.rpgmakerweb.com/threads/how-to-create-a-json-when-the-player-saves-a-game.146734/