How can I edit JSON arrays in BabelEdit?

BabelEdit supports editing JSON files that contain arrays, such as:

{
  "weekdays": [ "Monday", "Tuesday", "Wednesday", "Thursday",
                "Friday", "Saturday", "Sunday"]
}

In the tree view, BabelEdit displays array elements using their indices as sub-keys:

visualization of json arrays in BabelEdit's treeview

When saving, it automatically converts indexed objects back into JSON arrays - provided the keys are numeric, start at 0, and have no gaps.

If you want to disable this behavior, uncheck Support arrays in the project configuration (gear icon in the toolbar).

configuration dialog with checkbox to enable array support

Note: This mode is currently only available for the "JSON with nested namespaces, tree view" format.