Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix getValue() #1512

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

Closed
wants to merge 2 commits into from
Closed

Fix getValue() #1512

wants to merge 2 commits into from

Conversation

lmartelli
Copy link

It could not handle this case:
{
"key1": {"key3": "value1"},
"key1.key2": "value2"
}

I was not able to run the tests :-\

CodeAndWeb and others added 2 commits December 19, 2024 11:15
It could not handle this case:
{
  "key1": {"key3": "value1"},
  "key1.key2": "value2"
}
@CodeAndWeb
Copy link
Member

Honestly, I don't think this case should be supported.

{
  "key1": {"key2": "value1"},
  "key1.key2": "value2"
}

Allowing this introduces ambiguity, as it's unclear which value should take precedence. This kind of structure can lead to confusion and potential bugs which are hard to spot.

I strongly prefer a clear, consistent structure that avoids such conflicts entirely.

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

Successfully merging this pull request may close these issues.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.