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

How to display the REST json response as tree ? #31

Open
AnsarSamad opened this issue Oct 29, 2017 · 1 comment
Open

How to display the REST json response as tree ? #31

AnsarSamad opened this issue Oct 29, 2017 · 1 comment

Comments

@AnsarSamad
Copy link

while looking into the demo and the official page i couldn't understand how it is possible to dispaly a REST service response as json tree.

could you please share with me that how can i do to display json tree of REST Service response.
i tried the below code , but nothing is displayed in the page

var myjson = { any: { json: { value: 1 } } };
var opt = { 
    change: function(data) { /* called on every change */ },
    propertyclick: function(path) { /* called when a property is clicked with the JS path to that property */ }
};
/* opt.propertyElement = '<textarea>'; */ // element of the property field, <input> is default
/* opt.valueElement = '<textarea>'; */  // element of the value field, <input> is default
$('#mydiv').jsonEditor(myjson, opt);

please let me know that what is "#mydiv" , is that the div where the output tree is displayed ?

@einqiu
Copy link

einqiu commented Mar 14, 2018

you can look forward to the HOMEPAGE to see the source code

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

No branches or pull requests

2 participants