Currently editor fails to switch from default JSON to erlang. If the field contains [] Edit opens the editor in JSON mode and erlang lists are not allowed in!
With a switchable monaco editor (possible places of a switching control shown)

The editor should load into autodetected type mode