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
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ matched values or the parent object of the matched values. You even have the opt
9
9
Below is a basic usage:
10
10
````javascript
11
11
$.fn.filterJson({ json object }, {
12
-
property:"name",
12
+
property:["prop1", "prop2", ... n],
13
13
wrapper:true,
14
14
value:"user one",
15
15
checkContains:false,
@@ -41,8 +41,8 @@ Before digging into each property of the plugin lets describe our sample JSON.
41
41
}
42
42
````
43
43
44
-
* property (mandatory, default is null): This options takes the value of the property that you need to filter the JSON with. For the above sample JSON we can have three properties
45
-
id, name and email.
44
+
* property (mandatory, default is null): This options takes an array of the property or properties that you need to filter the JSON with. For the above sample JSON we can have three properties
45
+
id, name and email. So you can have this value set as ["name"] or ["name", "email"]
46
46
47
47
* wrapper (optional, default is false): If set to true, it will return an array of the parent object of the matched property else will return an array of value itself.
48
48
For instance if we are filtering the above sample JSON with 'name' property and wrapper is set to true, then an array of all the Objects which
0 commit comments