Juicy / juicy-jsoneditor

Polymer Element that wraps josdejong/jsoneditor and adds two-way binding for edited JSON.
http://juicy.github.io/juicy-jsoneditor/
MIT License
42 stars 12 forks source link

Allow providing raw JSON string in json attribute #21

Closed stevenroose closed 6 years ago

stevenroose commented 6 years ago

The json attribute currently requires and object, making it not usable both from raw HTML and from non-JS languages like Dart.

Please support providing raw JSON.

tomalec commented 6 years ago

Could you provide a sample?

Check our ~to-be~ issue template https://jsbin.com/hugamot/1/edit?html,console,output

<juicy-jsoneditor json="{&quot;foo&quot;: 1}"></juicy-jsoneditor>
tomalec commented 6 years ago

I tried to emphasize it in the readme https://github.com/Juicy/juicy-jsoneditor/pull/28. If that is not your case, please feel free to re-open and provide more details.