Skip to content

Rewrite the JSON Configuration store support #49

@zapodot

Description

@zapodot

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" 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions