How do i export events to a .json then load it during runtime

I’m making a chart editor for my game (for I don’t have to use 100+ events for 1 song) and I was wondering if it would be possible to export a event to a .json t then import it during the run time of the game kind of how Friday Night Funkin handles there charts/songs

Unfortunately, you cannot export events in the way you’re looking to.

Events are not in your exported code, they are converted into javascript and other logic code.

You would need to have your own internal scripting system (usually structure variables with specific naming that you design). You could then export that as a json and reimport it as needed and take actions (that you’ve manually built out in your game already) that differ depending on that structure variable.

Thank you for clarifying but i thought about using structures but I’m confused on how i would export the positions of the notes to the .JSON. do you have any ideas on how i would do that?