<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JSON 数据预览页面</title>
    <script src="/js/jquery-3.3.1.min.js"></script>
    <script src="/lib/json-viewer/jquery.json-viewer.js"></script>
    <link href="/lib/json-viewer/jquery.json-viewer.css" type="text/css" rel="stylesheet">
</head>
<body>
<pre id="json-renderer">
    [(${jsonData})]
</pre>
</body>

<script>
    var jsonData = '[(${jsonData})]';
    if (jsonData != null && jsonData != '') {
        var jsonConfig = {collapsed: false, withQuotes: true, withLinks: false};
        $('#json-renderer').jsonViewer(JSON.parse(jsonData), jsonConfig);
    }
</script>
</html>