-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
Milestone
Description
The current JSON configuration store support is really quite limited and does not support tagging or hierarchical JSON documents really well..
It should really be rewritten to support JSON documents such as:
{
"key": "default value",
"@testing.key": "value used for \"testing\"",
"sub": {
"anotherKey": "anotherValue"
}
}Ideally it should resolve like this:
final ConstrettoConfiguration conf = ...
if(conf.getCurrentTags().contains("testing")) {
System.out.println(conf.evaluteToString("key")); // prints "value used for "testing"
} else {
System.out.println(conf.evaluteToString("key")); // prints "default value"
}
System.out.println(conf.evaluteToString("sub.anotherKey")); // prints "anotherValue"