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

Prefix option #36

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

richardschneider
Copy link

Allow the key names to be prefixed with a custom string. The default is ''.

@timoxley
Copy link
Contributor

@richardschneider wondering if perhaps this could be more generic as key and value mapping functions.

@timoxley timoxley mentioned this pull request Jan 30, 2016
@richardschneider
Copy link
Author

@timoxley I'm happy to make some changes. Could you provide a bit more details.

I added prefix so that an object could be flatten to a JSON pointer .

@richardschneider
Copy link
Author

I've added the key mapping functions (keyname and keynames) for flatten and unflatten, respectively. Not too happy with the option names, perhaps you have better suggestion.

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

Successfully merging this pull request may close these issues.

2 participants