You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,9 +47,10 @@ var json = require('json-extra');
47
47
48
48
Check if it is a valid string or object. Just do a `JSON.parse` but with `try - catch`. Returns a boolean. The `type` is optional it its default is `string`. If you want to check if you have a object you can type in `object` as `type`.
49
49
50
-
`type` valid values: `string` or `object`
50
+
`type` valid values: `string` or `object`. Default: `string`
51
51
52
52
Alias: `isJson()`
53
+
Alias: `isValid()`
53
54
54
55
Example:
55
56
@@ -68,6 +69,8 @@ If you want to change your json string into a path just hit this method.
68
69
`base` in an object is always the name of the folder.
0 commit comments