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

Add support for key nesting #65

Open
pogiedoge opened this issue Mar 16, 2021 · 0 comments
Open

Add support for key nesting #65

pogiedoge opened this issue Mar 16, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@pogiedoge
Copy link
Member

To avoid redundancy in values, I'd like to have the option to refer to the value of a different object nested in one object's value. The nesting should work by prefixing the desired key.

Take the following example:
`
{
"red": "red",
"apple": "apple"
"red_apple": "$red $apple"
}

Output:
red
apple
red apple
`

In this example, the $ character serves as the prefix for the nested key, but the feature should be able to handle any string configured by the user as a prefix.

@pogiedoge pogiedoge added the enhancement New feature or request label Mar 16, 2021
@pogiedoge pogiedoge added this to the v0.3.0 milestone Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants