Open
Description
Describe the bug
When there is a dot (.) in the key of a valid json (or any other) file like this :
{
"test" : {
"test2.test3": "Should work"
}
}
FlatFile#get("test.test2.test3") doesn't return anything.
But
{
"test" : {
"test2": {
"test3" : "It works "
}
}
}
Correctly return "It works"
Expected behavior
When the key of a file contains a dot, it should still work.
Desktop (please complete the following information):
- SimplixStorage: 3.2.6
Activity
yoyosource commentedon Feb 29, 2024
I have one question regarding this issue. If you have this json object:
What should this call
FlatFile#get("test.test2.test3")
return? It would not be deterministic, since both would match. I think a better idea would be thatFlatFile#get("test.test2.test3")
return the latter andFlatFile#get("test.test2\.test3")
returns the former. This would make more sense to me.