You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SnapFromJSON() and SnapBufferReadJSON() now contain the optional parameter trackFieldOrder which defaults to false. When set to true, structs will be created with a special variable called .__snapFieldOrder which contains an array that describes the order that struct variables were found in the source JSON. Please note that empty structs will not contain a .__snapFieldOrder
SnapToJSON() and SnapBufferWriteJSON() now contain the optional parameter useFieldOrder which defaults to true. This will cause the parser to look for the special .__snapFieldOrder variable described above. If a field order is found, variables will be exported in the same order as found in the array. If any variables are found in the field order array that don't exist in the struct itself then a warning message will be outputted in the debug log (but no error so make sure to keep an eye on the debug log). If the struct contains variables that do not appear in the field order then those variables will be exported after variables found in the field order array. Field order takes precedence over alphabetisation.
Changes the default scope for the GML read function from global to a newly allocated struct