Skip to content

Commit 8d52f7d

Browse files
committed
added the parital and case_sensitive function in the doc
1 parent 8df408f commit 8d52f7d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/jsonparse/functions.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ def find_key(data, key):
1616
data -- The python object representing JSON data with key:value pairs. This could be a dictionary or a list.
1717
1818
key -- The key that will be searched for in the JSON data. The key must be a string.
19+
20+
partial -- If set to True the search will perform a partial match on keys
21+
This means the provided key may appear as a substring of the dictionary key
22+
Default is False which results in exact key matches will be returned
23+
24+
case_sensitive -- If set to True the key comparison will be case-sensitive
25+
Default is False which means 'Name' and 'name' will be considered same
1926
"""
2027
return Parser().find_key(data, key)
2128

0 commit comments

Comments
 (0)