MCPcopy Index your code
hub / github.com/simstudioai/sim / parseJsonObject

Function parseJsonObject

apps/sim/blocks/blocks/sharepoint.ts:932–943  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

930 return undefined
931 }
932 const parseJsonObject = (value: unknown) => {
933 if (typeof value !== 'string') return value
934 if (!value.trim()) return undefined
935 try {
936 return JSON.parse(value)
937 } catch (error) {
938 logger.error('Failed to parse SharePoint JSON input', {
939 error: toError(error).message,
940 })
941 return undefined
942 }
943 }
944
945 const normalizedFiles = normalizeFileInput(files)
946 const result: Record<string, any> = {

Callers 1

sharepoint.tsFile · 0.70

Calls 3

toErrorFunction · 0.90
parseMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected