Added case insensitive match for isJSON isXML methods

Added case insensitive match for isJSON isXML methods