function parseCustomJsonData()

in src/lib/actions/sendCapiData.js [17:29]


function parseCustomJsonData(customData) {
  if (!customData) {
    return undefined;
  }
  try {
    if ("string" === typeof customData) {
      return JSON.parse(customData)
    }
    return customData;
  } catch (err) {
    return undefined;
  }
}