(s)
| 52 | } |
| 53 | |
| 54 | function parseString(s) { |
| 55 | if (typeof s === 'string') { |
| 56 | try { |
| 57 | let tempS = JSON.parse(s); |
| 58 | if (typeof tempS === 'object' || typeof tempS === 'boolean') { |
| 59 | s = tempS; |
| 60 | } |
| 61 | } catch (e) { |
| 62 | //dummy catch |
| 63 | } |
| 64 | } |
| 65 | return s |
| 66 | } |
| 67 | |
| 68 | function compareResponse(a, b) { |
| 69 | a = parseString(a); |