code: function tryFormat(body) {
    try {
      const parsed = typeof body === 'string' ? JSON.parse(body) : body
      return JSON.stringify(parsed, null, 2)
    } catch (err) {
      return body
    }
  }
docs: Attempt pretty-formatting JSON