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
Currently the api.toJSON() and api.fromJSON() methods act upon deserialized object representations of the layout (JS Objects). This can lead to some confusion, as it's not technically JSON that they are using.
There is nothing wrong with the api methods taking JS objects, but I do feel like they should be renamed to reflect what is actually happening, perhaps something like api.saveLayout() and api.loadLayout().
The text was updated successfully, but these errors were encountered:
brochington
changed the title
api.toJSON() and api.fromJSON() should be be renamed, or updated to handle JSON strings.api.toJSON() and api.fromJSON() should be be renamed, as they use JS Objects and not JSON.
May 29, 2024
Currently the
api.toJSON()
andapi.fromJSON()
methods act upon deserialized object representations of the layout (JS Objects). This can lead to some confusion, as it's not technically JSON that they are using.There is nothing wrong with the api methods taking JS objects, but I do feel like they should be renamed to reflect what is actually happening, perhaps something like
api.saveLayout()
andapi.loadLayout()
.The text was updated successfully, but these errors were encountered: