DavidDurman / FlexiJsonEditor

JSON editor jQuery plugin
http://jsonmate.com
Other
560 stars 139 forks source link

Need an option to have only atomic values editable #26

Closed nileshtrivedi closed 9 years ago

nileshtrivedi commented 9 years ago

Currently, a text field is generated for the object (or array) itself too where the complete json can be viewed and edited. To make editing more user-friendly, there should be an option so that a property's value can be edited only by going down deep in the hierarchy and finding the text field for that property. In other words, there would be no text fields for arrays or objects, only for numbers and strings.

DavidDurman commented 9 years ago

Good suggestion. A flag for turning this off would make it more "programmer's friendly" but it can be done already by applying the following CSS rule:

.item.array > .value,
.item.object > .value {
    display: none;
}
nileshtrivedi commented 9 years ago

Thanks, @DavidDurman . This is a good enough solution for now.