Skip to content

Commit ca1f506

Browse files
committed
Released json-duplicate-keys v2024.11.19
1 parent d2dc274 commit ca1f506

File tree

3 files changed

+152
-232
lines changed

3 files changed

+152
-232
lines changed

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ Flatten/ Unflatten and Load(s)/ Dump(s) JSON File/ Object with Duplicate Keys
88
<a href="#"><img src="https://img.shields.io/github/forks/truocphan/json-duplicate-keys" height=30></a>
99
<a href="https://github.com/truocphan/json-duplicate-keys/issues?q=is%3Aopen+is%3Aissue"><img src="https://img.shields.io/github/issues/truocphan/json-duplicate-keys" height=30></a>
1010
<a href="https://github.com/truocphan/json-duplicate-keys/issues?q=is%3Aissue+is%3Aclosed"><img src="https://img.shields.io/github/issues-closed/truocphan/json-duplicate-keys" height=30></a>
11-
<a href="https://pypi.org/project/json-duplicate-keys/" target="_blank"><img src="https://img.shields.io/badge/pypi-3775A9?style=for-the-badge&logo=pypi&logoColor=white" height=30></a>
12-
<a href="https://www.facebook.com/61550595106970" target="_blank"><img src="https://img.shields.io/badge/Facebook-1877F2?style=for-the-badge&logo=facebook&logoColor=white" height=30></a>
13-
<a href="https://twitter.com/TPCyberSec" target="_blank"><img src="https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white" height=30></a>
14-
<a href="https://github.com/truocphan" target="_blank"><img src="https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white" height=30></a>
15-
<a href="mailto:[email protected]" target="_blank"><img src="https://img.shields.io/badge/Gmail-D14836?style=for-the-badge&logo=gmail&logoColor=white" height=30></a>
16-
<a href="https://www.buymeacoffee.com/truocphan" target="_blank"><img src="https://img.shields.io/badge/Buy_Me_A_Coffee-FFDD00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black" height=30></a>
1711
</p>
1812

1913
## Installation
@@ -98,9 +92,10 @@ print(JDKSObject.getObject())
9892
```
9993
---
10094

101-
### JSON_DUPLICATE_KEYS.get(`name`, `separator`="||", `parse_index`="$", `_isDebug_`=False)
95+
### JSON_DUPLICATE_KEYS.get(`name`, `case_insensitive`=False, `separator`="||", `parse_index`="$", `_isDebug_`=False)
10296
_Get value in the JSON object by `name`_
10397
- `name`: the key name of the JSON object. Supported flatten key name format
98+
- `case_insensitive`: the key name case (in)sensitive
10499
- `separator`:
105100
- `parse_index`:
106101
- `_isDebug_`: Show/ Hide debug error messages
@@ -122,10 +117,11 @@ print(JDKSObject.get("snapshot||author"))
122117
```
123118
---
124119

125-
### JSON_DUPLICATE_KEYS.set(`name`, `value`, `separator`="||", `parse_index`="$", `dupSign_start`="{{{", `dupSign_end`="}}}", `ordered_dict`=False, `_isDebug_`=False)
120+
### JSON_DUPLICATE_KEYS.set(`name`, `value`, `case_insensitive`=False, `separator`="||", `parse_index`="$", `dupSign_start`="{{{", `dupSign_end`="}}}", `ordered_dict`=False, `_isDebug_`=False)
126121
_Set a new `name` and `value` for the JSON object_
127122
- `name`: new key name for the JSON object. Supported flat key name format
128123
- `value`: value for key `name`
124+
- `case_insensitive`: the key name case (in)sensitive
129125
- `separator`:
130126
- `parse_index`:
131127
- `dupSign_start`:
@@ -186,10 +182,11 @@ print(JDKSObject.getObject())
186182
```
187183
---
188184

189-
### JSON_DUPLICATE_KEYS.update(`name`, `value`, `separator`="||", `parse_index`="$", `_isDebug_`=False)
185+
### JSON_DUPLICATE_KEYS.update(`name`, `value`, `case_insensitive`=False, `separator`="||", `parse_index`="$", `_isDebug_`=False)
190186
_Update new `value` for existing `name` in the JSON object_
191187
- `name`: the key name of the JSON object. Supported flatten key name format
192188
- `value`: new value for key `name`
189+
- `case_insensitive`: the key name case (in)sensitive
193190
- `separator`:
194191
- `parse_index`:
195192
- `_isDebug_`: Show/ Hide debug error messages
@@ -211,9 +208,10 @@ print(JDKSObject.getObject())
211208
```
212209
---
213210

214-
### JSON_DUPLICATE_KEYS.delete(`name`, `separator`="||", `parse_index`="$", `_isDebug_`=False)
211+
### JSON_DUPLICATE_KEYS.delete(`name`, `case_insensitive`=False, `separator`="||", `parse_index`="$", `_isDebug_`=False)
215212
_Delete a key-value pair in a JSON object by key `name`_
216213
- `name`: the key name of the JSON object. Supported flatten key name format
214+
- `case_insensitive`: the key name case (in)sensitive
217215
- `separator`:
218216
- `parse_index`:
219217
- `_isDebug_`: Show/ Hide debug error messages
@@ -380,6 +378,9 @@ print(JDKSObject.getObject())
380378
---
381379

382380
## CHANGELOG
381+
#### [json-duplicate-keys v2024.11.19](https://github.com/truocphan/json-duplicate-keys/tree/2024.11.19)
382+
- **Updated**: Allows getting (`JSON_DUPLICATE_KEYS.get`), setting (`JSON_DUPLICATE_KEYS.set`), updating (`JSON_DUPLICATE_KEYS.update`), deleting (`JSON_DUPLICATE_KEYS.delete`) JSON_DUPLICATE_KEYS objects with case-insensitive key names
383+
383384
#### [json-duplicate-keys v2024.7.17](https://github.com/truocphan/json-duplicate-keys/tree/2024.7.17)
384385
- **Fixed**: issue [#3](https://github.com/truocphan/json-duplicate-keys/issues/3) break the set function when the key's value is empty. Thanks [ptth222](https://github.com/ptth222) for reporting this issue.
385386

0 commit comments

Comments
 (0)