index.js
async function _parseJSON(token) {
  if (token._bodyInit == null) {
    return token;
  } else {
    const body = await token.json();
    return body;
  }
}
async function _parseJSON(token) {
  if (token._bodyInit == null) {
    return token;
  } else {
    const body = await token.json();
    return body;
  }
}
async function _parseJSON ( token ) { if ( token . _bodyInit == null ) { return token ; } else { const body = await token . json ( ) ; return body ; } }
Stripe gives a JSON object with the token object embedded as a JSON string. _parseJSON finds that string in and returns it as a JSON object, or an error if Stripe threw an error instead. If the JSON does not need to be parsed, returns the token.
Stripe gives a JSON object with the token object embedded as a JSON string . _parseJSON finds that string in and returns it as a JSON object or an error if Stripe threw an error instead . If the JSON does not need to be parsed returns the token .