Save the project in json format.
You need use OnSaveProject to be able to manipulate.
public procedure SaveProject;