Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load the JSON in jsoneditor and display as a expanded in json editor. #1547

Open
Laxmikantwagh25 opened this issue Sep 6, 2023 · 1 comment
Labels

Comments

@Laxmikantwagh25
Copy link

I am loading/passing a JSON to jsoneditor on button click, but JSON is showing in collapsed and not expanded.
I want to display the JSON in expanded automatically after loading/passing json to json editor.

How to achieve this?

Thanks, in advance.

@josdejong
Copy link
Owner

The editor by default loads JSON with the root object or array expanded. With the methods .expand(options) or .expandAll() you can expand more.

See docs: https://github.com/josdejong/jsoneditor/blob/develop/docs/api.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants