(str)
| 237 | } |
| 238 | |
| 239 | export const verifyJSON = (str) => { |
| 240 | try { |
| 241 | JSON.parse(str); |
| 242 | } catch (e) { |
| 243 | return false; |
| 244 | } |
| 245 | return true; |
| 246 | }; |
| 247 | |
| 248 | export function verifyJSONPromise(value) { |
| 249 | try { |
no outgoing calls
no test coverage detected