Skip to content

JSON Editor Very Slow #833

Open
Open
@logankrause16

Description

@logankrause16

Hello All,

I am running into the issue of the JSONEditor being very very slow. My application works by clicking on an item in a list, and the JSONEditor populates with the selected JSON. I believe I have narrowed it down to the JSONEditor and will provide how I am declaring the items below. I am using this in Angular 7.

Declaration:
`public editorList: any[] = [];
public editorOptions: JsonEditorOptions;
public data: any;
@ViewChild(JsonEditorComponent) editor: JsonEditorComponent;

constructor() {
this.editorOptions = new JsonEditorOptions();
this.editorOptions.mode = 'code';
}
Use where data is a json object
<json-editor style="background-color: white;" [options]="editorOptions" [data]="data">

`
I have checked and confirmed that this is not a network issue. Once the data is loaded into the editor it takes nearly 5 seconds for the cursor to appear on a clicked line of code. Any help would be great.

Thanks.

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