Fixes #89. Keep formData in sync when editing JSON.