Skip to content

Commit 0144094

Browse files
committed
Update README.md
1 parent 541c7b7 commit 0144094

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ matched values or the parent object of the matched values. You even have the opt
99
Below is a basic usage:
1010
````javascript
1111
$.fn.filterJson({ json object }, {
12-
property: "name",
12+
property: ["prop1", "prop2", ... n],
1313
wrapper: true,
1414
value: "user one",
1515
checkContains: false,
@@ -41,8 +41,8 @@ Before digging into each property of the plugin lets describe our sample JSON.
4141
}
4242
````
4343

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"]
4646

4747
* 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.
4848
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

Comments
 (0)