MCPcopy Create free account
hub / github.com/DTStack/molecule / toJSONString

Method toJSONString

src/services/settingsService.ts:182–188  ·  view source on GitHub ↗
(obj: object, space: number = 4)

Source from the content-addressed store, hash-verified

180 }
181
182 public toJSONString(obj: object, space: number = 4): string {
183 try {
184 return JSON.stringify(obj, null, space);
185 } catch (e) {
186 throw new Error(`SettingsService.toJSONString error: ${e}`);
187 }
188 }
189}

Callers 1

flatObject2JSONStringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected