truocphan / json-duplicate-keys Goto Github PK
View Code? Open in Web Editor NEWFlatten/ Unflatten and Load(s)/ Dump(s) JSON File/ Object with Duplicate Keys
Home Page: https://pypi.org/project/json-duplicate-keys/
License: MIT License
Flatten/ Unflatten and Load(s)/ Dump(s) JSON File/ Object with Duplicate Keys
Home Page: https://pypi.org/project/json-duplicate-keys/
License: MIT License
If you set the empty string using the set method you can longer set anything else.
Code to reproduce:
temp = jdks.JSON_DUPLICATE_KEYS({})
temp.set('', "asdf")
temp.set("foo", "bar") #returns False
Some preliminary testing looks like switching the order of the if statements in set fixes the issue. I moved the elif that looks for a zero length name_split_first to the second test instead of the third and it lets you set new values again. I can submit a PR if that would help.
Hello ๐
I run a security community that finds and fixes vulnerabilities in OSS. A researcher (@mk7120) has found a potential issue, which I would be eager to share with you.
Could you add a SECURITY.md
file with an e-mail address for me to send further details to? GitHub recommends a security policy to ensure issues are responsibly disclosed, and it would help direct researchers in the future.
Looking forward to hearing from you ๐
(cc @huntr-helper)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.