Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow dictionary/hashset-like sections #12

Open
Krakean opened this issue Jun 3, 2019 · 1 comment
Open

Allow dictionary/hashset-like sections #12

Krakean opened this issue Jun 3, 2019 · 1 comment
Assignees

Comments

@Krakean
Copy link

Krakean commented Jun 3, 2019

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",
             }
       }
   ]
}
@salaros salaros self-assigned this Jun 7, 2019
@salaros
Copy link
Owner

salaros commented Jun 7, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants