support code view
This commit is contained in:
@@ -423,4 +423,11 @@ export default class Toolkit {
|
||||
}
|
||||
}, interval);
|
||||
}
|
||||
|
||||
public static formatJson(jsonStr?: string): string {
|
||||
if (!jsonStr) {
|
||||
return "";
|
||||
}
|
||||
return JSON.stringify(JSON.parse(jsonStr), null, 4);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user