code: function tryParseJson(body, property, callback) {
    [body, property, callback] = doArgs(arguments, ['string', 'string|array|function|null', 'function']);
  
    try {
      // Won't harm if we replace escape sequence
      body = body.replace(/\x1b/g, '');
  
      // Try to parse
      let data = JSON.parse(body.toString());
  
      // Get the prop name if specified
      if (property) {
        const type = getType(property);
  
        if (type === 'array') {
          const newData = {};
  
          for (const p of property) {
            newData[p] = data[p];
          }
          data = newData;
        }
        if (type === 'string') {
          data = data[property];
        }
        if (type === 'function') {
          data = property(data);
        }
      }
  
      callback(null, data);
    } catch (e) {
      callback(e, body);
    }
  }
docs: Parse the passed string as JSON and extract or "manipulate" it using the property.
  
  @param {string} body - string response body
  @param {string|array|function} property - property to get from body or modificator function
  @param {function} callback function to call when all done