MCPcopy Index your code
hub / github.com/upstash/jstack / parseSuperJSON

Function parseSuperJSON

packages/jstack/src/server/middleware/utils.ts:3–9  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

1import superjson from "superjson"
2
3export const parseSuperJSON = (value: string) => {
4 try {
5 return superjson.parse(value)
6 } catch {
7 return value
8 }
9}

Callers 2

queryParsingMiddlewareFunction · 0.90
bodyParsingMiddlewareFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected