MCPcopy Index your code
hub / github.com/MainframeOS/react-json-renderer / convertToJSON

Function convertToJSON

src/converter.js:109–115  ·  view source on GitHub ↗
(
  tree: Element<*>,
  params?: ConvertJSONParams = {},
)

Source from the content-addressed store, hash-verified

107}
108
109export const convertToJSON = (
110 tree: Element<*>,
111 params?: ConvertJSONParams = {},
112): string => {
113 const { space, ...convertParams } = params
114 return JSON.stringify(convertToObject(tree, convertParams), null, space)
115}

Callers 2

WrapperFunction · 0.90
lib.jsFile · 0.90

Calls 1

convertToObjectFunction · 0.85

Tested by 1

WrapperFunction · 0.72