@@ -8,12 +8,6 @@ Flatten/ Unflatten and Load(s)/ Dump(s) JSON File/ Object with Duplicate Keys
8
8
<a href="#"><img src="https://img.shields.io/github/forks/truocphan/json-duplicate-keys" height=30></a>
9
9
<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>
10
10
<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>
17
11
</p >
18
12
19
13
## Installation
@@ -98,9 +92,10 @@ print(JDKSObject.getObject())
98
92
```
99
93
---
100
94
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)
102
96
_ Get value in the JSON object by ` name ` _
103
97
- ` name ` : the key name of the JSON object. Supported flatten key name format
98
+ - ` case_insensitive ` : the key name case (in)sensitive
104
99
- ` separator ` :
105
100
- ` parse_index ` :
106
101
- ` _isDebug_ ` : Show/ Hide debug error messages
@@ -122,10 +117,11 @@ print(JDKSObject.get("snapshot||author"))
122
117
```
123
118
---
124
119
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)
126
121
_ Set a new ` name ` and ` value ` for the JSON object_
127
122
- ` name ` : new key name for the JSON object. Supported flat key name format
128
123
- ` value ` : value for key ` name `
124
+ - ` case_insensitive ` : the key name case (in)sensitive
129
125
- ` separator ` :
130
126
- ` parse_index ` :
131
127
- ` dupSign_start ` :
@@ -186,10 +182,11 @@ print(JDKSObject.getObject())
186
182
```
187
183
---
188
184
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)
190
186
_ Update new ` value ` for existing ` name ` in the JSON object_
191
187
- ` name ` : the key name of the JSON object. Supported flatten key name format
192
188
- ` value ` : new value for key ` name `
189
+ - ` case_insensitive ` : the key name case (in)sensitive
193
190
- ` separator ` :
194
191
- ` parse_index ` :
195
192
- ` _isDebug_ ` : Show/ Hide debug error messages
@@ -211,9 +208,10 @@ print(JDKSObject.getObject())
211
208
```
212
209
---
213
210
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)
215
212
_ Delete a key-value pair in a JSON object by key ` name ` _
216
213
- ` name ` : the key name of the JSON object. Supported flatten key name format
214
+ - ` case_insensitive ` : the key name case (in)sensitive
217
215
- ` separator ` :
218
216
- ` parse_index ` :
219
217
- ` _isDebug_ ` : Show/ Hide debug error messages
@@ -380,6 +378,9 @@ print(JDKSObject.getObject())
380
378
---
381
379
382
380
## 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
+
383
384
#### [ json-duplicate-keys v2024.7.17] ( https://github.com/truocphan/json-duplicate-keys/tree/2024.7.17 )
384
385
- ** 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.
385
386
0 commit comments