Previously it was possible to determine default property values automatically by using a custom BuiltInPlugin that can read the default values for almost all Roblox properties (including {RobloxScriptSecurity}
members).
However, it seems that Roblox is going to start restricting what plugins are allowed to be loaded into here :
Rather than go into a rant about this change, I want to propose that Roblox Studio’s JSON API Dump exports default values for properties. This is a necessity not only for my own tools, but for @LPGhatguy’s rojo
, which is used extensively both inside and outside of Roblox.
This is the plugin implemetation that I’m currently using:
This is the plugin being used by @LPGhatguy:
Default values can be generated for these objects by starting a DataModel, instantiating each class, and reading what their properties are set to.
The JSON schema for these properties can be defined in a similar manner to how they are encoded in the XML file format. It may even be beneficial to utilize the systems for writing those XML properties to define their JSON formats.
I hope this can be addressed soon. Thanks!