(str)
| 373 | .join('&'); |
| 374 | } |
| 375 | isJSONString(str) { |
| 376 | try { |
| 377 | var obj = JSON.parse(str); |
| 378 | if (typeof obj == 'object' && obj) { |
| 379 | return true; |
| 380 | } else { |
| 381 | return false; |
| 382 | } |
| 383 | } catch (e) { |
| 384 | return false; |
| 385 | } |
| 386 | } |
| 387 | isJson(obj) { |
| 388 | var isjson = typeof (obj) == "object" && Object.prototype.toString.call(obj).toLowerCase() == "[object object]" && !obj.length; |
| 389 | return isjson; |