(value)
| 68 | } |
| 69 | |
| 70 | function parseJSON(value) { |
| 71 | if (value) { |
| 72 | try { |
| 73 | return JSON.parse(value); |
| 74 | } |
| 75 | catch (e) { |
| 76 | if (/^{/.test(value)) { |
| 77 | fatal('Could not parse JSON value \'' + value + '\''); |
| 78 | } |
| 79 | return value; |
| 80 | } |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | function parseJSONArray(value) { |
| 85 | if (value) { |
no test coverage detected
searching dependent graphs…