fix: update JSONEditor to default to manual mode for invalid JSON and add error message for invalid data