MCPcopy Create free account
hub / github.com/ShipSecAI/studio / tryFormatJson

Function tryFormatJson

frontend/src/components/timeline/NetworkPanel.tsx:369–376  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

367}
368
369function tryFormatJson(text: string): string {
370 try {
371 const parsed = JSON.parse(text);
372 return JSON.stringify(parsed, null, 2);
373 } catch {
374 return text;
375 }
376}
377
378export function NetworkPanel() {
379 const { events, selectedNodeId } = useExecutionTimelineStore();

Callers 1

RequestDetailFunction · 0.85

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected