MCPcopy Create free account
hub / github.com/Faleij/json-stream-stringify / write

Method write

src/JsonStreamStringify.ts:438–444  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

436 that.setItem(input[key], item, key);
437 },
438 write() {
439 const out = `${hasItems && !first ? ',' : ''}${item.indent ? `\n${item.indent}` : ''}${quoteString(key)}:${that.indent ? ' ' : ''}`;
440 first = false;
441 hasItems = true;
442 that.objectItem = undefined;
443 return out;
444 },
445 };
446 this.item = item;
447 }

Callers 3

_pushMethod · 0.80
readFunction · 0.80

Calls 1

quoteStringFunction · 0.85

Tested by 1

readFunction · 0.64