Skip to content

api.toJSON() and api.fromJSON() should be be renamed, as they use JS Objects and not JSON. #619

Open
@brochington

Description

@brochington

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().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions