You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
finalConstrettoConfigurationconf = ...
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"
The text was updated successfully, but these errors were encountered:
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:
Ideally it should resolve like this:
The text was updated successfully, but these errors were encountered: