"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.prettyPrintJson = prettyPrintJson;
/**
 * Pretty-print a string that may contain JSON. Falls back to the original string
 * if it doesn't parse as JSON, so non-JSON payloads render unchanged.
 */
function prettyPrintJson(s) {
    if (!s)
        return undefined;
    try {
        return JSON.stringify(JSON.parse(s), null, 2);
    }
    catch (_a) {
        return s;
    }
}
//# sourceMappingURL=prettyPrintJson.js.map
