MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / convertNestedToJsonInPlace

Function convertNestedToJsonInPlace

js/botasaurus-js/src/output.ts:144–150  ·  view source on GitHub ↗
(inputList: any[])

Source from the content-addressed store, hash-verified

142}
143
144function convertNestedToJsonInPlace(inputList: any[]): any[] {
145 for (let i = 0; i < inputList.length; i++) {
146 inputList[i] = convertNestedItemToJson(inputList[i]);
147 }
148
149 return inputList;
150}
151function convertNestedItemToJson(item: any) {
152 const processedDict: { [key: string]: any} = {}
153 for (const [key, value] of Object.entries(item)) {

Callers 2

writeCsvFunction · 0.90
writeCsvFunction · 0.90

Calls 1

convertNestedItemToJsonFunction · 0.85

Tested by

no test coverage detected