Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOrderedDictionary.Insert adds key multiple times #145

Open
EllieTellie opened this issue Sep 14, 2023 · 0 comments
Open

IOrderedDictionary.Insert adds key multiple times #145

EllieTellie opened this issue Sep 14, 2023 · 0 comments

Comments

@EllieTellie
Copy link

EllieTellie commented Sep 14, 2023

Hi,

I have noticed this method adds the key multiple times. I needed some json to be added to the start of the json document and not at the end.

My fix was simply to add at the start of the function
EnsureDictionary ();
And replace
this[property] = data; with inst_object[property] = data;

Then it works properly. Do you want me to make a pull request? I have a homebrew fork so it's not exactly compatible, but I can make a proper fork and just do this one change.

Regards,
Rene

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant