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

Parsing an encoded json #42

Closed
SeriousM opened this issue Mar 26, 2013 · 2 comments
Closed

Parsing an encoded json #42

SeriousM opened this issue Mar 26, 2013 · 2 comments
Labels

Comments

@SeriousM
Copy link

Hi, your tool is very powerful and I very like it :)

I have a feature request:
I want to insert an encrypted json like "{"id":1}" that I copied out of my network tab in chrome to see what is in there. The example json is not hard to modify but I'm talking about a json about 100 lines.

is it possible to add this feature?

Cheers!

@josdejong
Copy link
Owner

The library currently comes with two editors: JSONEditor and JSONFormatter. The JSONEdtior only has a method set(json), whereas the JSONFormatter has methods set(json) and setText(jsonString). This last method is what you would like to have for the JSONEditor too. It's on the planning to merge these two editors into one, supporting different (switchable) modes: edit, view, form, text, code. This unified editor will have both methods set and setText, which will resolve your feature request at once.

For now you can of course parse the data using your browsers JSON.parse(str), and feed the JSON object to the editor.

@SeriousM
Copy link
Author

ok, that is a good workaround, but it is still longer than just paste :)

Cheers^^

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