提交 65194ac4 编写于 作者: I Igor Malinovskiy

Handle JSON.parse exceptions

上级 e4320b6c
.pragma library
var prettyPrint = function( json, style, colorMap) {
var out = JSON.parse(json);
var out;
try {
out = JSON.parse(json);
} catch (exc) {
out = json
}
// Highlight different value types
var syntaxHighlight = function(json) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册