Ok, here's a python version.
https://www.dropbox.com/s/73o1wa4ts21uf ... y.cap?dl=1
/examples31/saveLoadpy.cap
The first script under the "start of layout" is the meat of it. It has two functions to save/load to a json file.
The first function is save. As an example it can be used like this:
save("myfile.txt", Sprite, Sprite2, Family3, tiledBackground)
Basically the first parameter is the filename and you add the object types you want to save as the following parameters. You can use as many types as you need. Sprites, tiledbackgrounds and families of either should work.
Load is simpler, you just use a filename as a parameter. For example:
load("myfile.txt")
Other nice to knows:
The file is saved in the working directory i think but if you want it to be saved to the apppath use:
System.AppPath+"myfile.txt"
If you want to only save the picked objects use SOL.Sprite instead of Sprite.
Saving tiledbackground's instance variables will crash so it's not done.
Finally there isn't a way to find out what an object's collision mode is in events so it can't be done in python.