dist/hawtio-utilities.js
function parseJsonText(text, message) {
        if (message === void 0) { message = "JSON"; }
        var answer = null;
        try {
            answer = angular.fromJson(text);
        }
        catch (e) {
            log.info("Failed to parse " + message + " from: " + text + ". " + e);
        }
        return answer;
    }
function parseJsonText(text, message) {
        if (message === void 0) { message = "JSON"; }
        var answer = null;
        try {
            answer = angular.fromJson(text);
        }
        catch (e) {
            log.info("Failed to parse " + message + " from: " + text + ". " + e);
        }
        return answer;
    }
function parseJsonText ( text , message ) { if ( message === void 0 ) { message = "JSON" ; } var answer = null ; try { answer = angular . fromJson ( text ) ; } catch ( e ) { log . info ( "Failed to parse " + message + " from: " + text + ". " + e ) ; } return answer ; }
Attempts to parse the given JSON text and returns the JSON object structure or null.
Bad JSON is logged at info level.

@param text a JSON formatted string
@param message description of the thing being parsed logged if its invalid
Attempts to parse the given JSON text and returns the JSON object structure or null . Bad JSON is logged at info level .