Skip to content

Request: model->reset #36

@diegoiast

Description

@diegoiast

I have a small use case, in which I am passing an empty string to the model. What happens is that the model complains that the json cannot be parsed... which make s a lot of noise on my setup (how can I distinguish this and "the json is not valid"?).

I would like to have a 'clear the model data' method, so I can detect this on my side, and instead of model->loadJson() I would call model->clear() and reduce debug output on my side.

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