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

Remove shallow copy hack, if jsoneditor provide a way to do so. #1

Closed tomalec closed 10 years ago

tomalec commented 10 years ago

Currently at /src/juicy-jsoneditor.html#L41 I need to iterate over json's properties to replace/remove them with ones from JSONEditor.

First of all it replaces entire objects, so it will break any binding to nested nodes, it triggers update on all root nodes even if they were not changed.

All that ugly hacking would not be necessary if JSONEditor's change callback could provide actual changes. (josdejong/jsoneditor#102)