config-parser
config-parser copied to clipboard
Allow dictionary/hashset-like sections
For example:
[Server]
Name = 192.168.0.1
[Server.Alpha]
Name = 192.168.0.2
IsAlpha = true
[Server.Beta]
Name = 192.168.0.3
IsBeta = true
If describe it as json, it would look something like this:
{
"Server" : [
{
"Name" : "192.168.0.1",
"Alpha": {
"Name" : "192.168.0.2",
"IsAlpha" : true
},
"Beta": {
"Name" : "192.168.0.3",
"IsBeta" : "true",
}
}
]
}
Are they not allowed right now? I'm quite sure you can create ini files like that. What do you want config parser to do? Transform it into an object or a raw JSON string? Please clarify your request.