MCPcopy Index your code
hub / github.com/dataease/SQLBot / serialize

Function serialize

frontend/public/swagger-ui-bundle.js:55371–55385  ·  view source on GitHub ↗
(s, o)

Source from the content-addressed store, hash-verified

55369 }
55370 },
55371 })
55372 function serialize(s, o) {
55373 return o.includes('application/json')
55374 ? 'string' == typeof s
55375 ? s
55376 : (Array.isArray(s) &&
55377 (s = s.map((s) => {
55378 try {
55379 return JSON.parse(s)
55380 } catch (o) {
55381 return s
55382 }
55383 })),
55384 JSON.stringify(s))
55385 : String(s)
55386 }
55387 function grammar_grammar() {
55388 ;((this.grammarObject = 'grammarObject'),

Callers 4

parameter_builders_pathFunction · 0.85
queryFunction · 0.85
cookieFunction · 0.85

Calls 4

includesMethod · 0.45
isArrayMethod · 0.45
mapMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected