Skip to content

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