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

Dots in key name #9

Open
ghost opened this issue Jun 18, 2018 · 1 comment
Open

Dots in key name #9

ghost opened this issue Jun 18, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 18, 2018

Hi,

is it possible to have dot characters in the key name?

I need to have a key which is a domain name, like www.mysite.com. But it always creates JSON structure like this:

{
  "www": {
    "mysite": {
      "com": { ... }
    }
  }
}

Instead of simply this:

{
  "www.mysite.com": { ... }
}
@madsalama
Copy link

I think you can try something like this, not sure if it's going to work.

- ghetto_json:
  - !unsafe 'www.mysite.com': {{ value }}

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

No branches or pull requests

1 participant