Currently we force users to escape special characters (e. g. backslashes) in JMX item keys parameters:
This could be done by Zabbix automatically the same way it works with other item types, not forcing user to think about escaping at all.
In addition, number of escape characters in key parameters and error message can be different (2nd parameter, attributeName "invalid\attributeName" in example below) , which is confusing:
Note that the error message is not so user-friendly also. So, the expected result could be like the following (with error message fixed):
The idea came from