Releases: truocphan/json-duplicate-keys
Releases · truocphan/json-duplicate-keys
2023.8.21
Full Changelog: 2023.8.12...2023.8.21
2023.8.12
- Added new function: normalize_key
- Change the default debug error message to
False
Full Changelog: 2023.8.8...2023.8.12
2023.8.8
Upgrade and add new functions:
- 𝐥𝐨𝐚𝐝𝐬(): Deserialize a JSON format string to a class JSON_DUPLICATE_KEYS
- 𝐥𝐨𝐚𝐝(): Deserialize a JSON format string from a file to a class JSON_DUPLICATE_KEYS
- 𝐉𝐒𝐎𝐍_𝐃𝐔𝐏𝐋𝐈𝐂𝐀𝐓𝐄_𝐊𝐄𝐘𝐒.𝐠𝐞𝐭𝐎𝐛𝐣𝐞𝐜𝐭(): Get the JSON object
- 𝐉𝐒𝐎𝐍_𝐃𝐔𝐏𝐋𝐈𝐂𝐀𝐓𝐄_𝐊𝐄𝐘𝐒.𝐠𝐞𝐭(): Get value in the JSON object by name
- 𝐉𝐒𝐎𝐍_𝐃𝐔𝐏𝐋𝐈𝐂𝐀𝐓𝐄_𝐊𝐄𝐘𝐒.𝐬𝐞𝐭(): Set a new name and value for the JSON object
- 𝐉𝐒𝐎𝐍_𝐃𝐔𝐏𝐋𝐈𝐂𝐀𝐓𝐄_𝐊𝐄𝐘𝐒.𝐮𝐩𝐝𝐚𝐭𝐞(): Update new value for existing name in the JSON object
- 𝐉𝐒𝐎𝐍_𝐃𝐔𝐏𝐋𝐈𝐂𝐀𝐓𝐄_𝐊𝐄𝐘𝐒.𝐝𝐞𝐥𝐞𝐭𝐞(): Delete a key-value pair in a JSON object by key name
- 𝐉𝐒𝐎𝐍_𝐃𝐔𝐏𝐋𝐈𝐂𝐀𝐓𝐄_𝐊𝐄𝐘𝐒.𝐝𝐮𝐦𝐩𝐬(): Serialize a JSON object to a JSON format string
- 𝐉𝐒𝐎𝐍_𝐃𝐔𝐏𝐋𝐈𝐂𝐀𝐓𝐄_𝐊𝐄𝐘𝐒.𝐝𝐮𝐦𝐩(): Serialize a JSON object to a JSON format string and write to a file
- 𝐉𝐒𝐎𝐍_𝐃𝐔𝐏𝐋𝐈𝐂𝐀𝐓𝐄_𝐊𝐄𝐘𝐒.𝐟𝐥𝐚𝐭𝐭𝐞𝐧(): Flatten a JSON object to a single key-value pairs
- 𝐉𝐒𝐎𝐍_𝐃𝐔𝐏𝐋𝐈𝐂𝐀𝐓𝐄_𝐊𝐄𝐘𝐒.𝐮𝐧𝐟𝐥𝐚𝐭𝐭𝐞𝐧(): Unflatten a flattened JSON object back to a JSON object
Full Changelog: 23.2.7...2023.8.8
23.2.7
Full Changelog: 22.5.28...23.2.7
22.5.28
Full Changelog: 22.4.28...22.5.28
Added 2 new functions: load and dump
-
load function: load Json Object from File
-
dump function: dump Json Object to File