MCPcopy Create free account
hub / github.com/getagentseal/codeburn / findJsonStringEnd

Function findJsonStringEnd

src/parser.ts:152–162  ·  view source on GitHub ↗
(source: string, start: number, limit = source.length)

Source from the content-addressed store, hash-verified

150}
151
152function findJsonStringEnd(source: string, start: number, limit = source.length): number {
153 for (let i = start + 1; i < limit; i++) {
154 const ch = source.charCodeAt(i)
155 if (ch === 0x5c) {
156 i++
157 continue
158 }
159 if (ch === 0x22) return i
160 }
161 return -1
162}
163
164function findJsonContainerEnd(source: string, start: number, open: number, close: number, limit = source.length): number {
165 let depth = 0

Callers 4

findJsonValueBoundsFunction · 0.85
findObjectFieldValueFunction · 0.85
extractLargeAddedNamesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected