Validate JSON in the edit window