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

Escape keys with delimiters #79

Open
wvh opened this issue Aug 31, 2018 · 4 comments
Open

Escape keys with delimiters #79

wvh opened this issue Aug 31, 2018 · 4 comments

Comments

@wvh
Copy link

wvh commented Aug 31, 2018

Shouldn't there be a way to escape those keys that have the delimiter inside?

Paths in json-pointer format use ~0 and ~1, which can be done in a one-liner.

@antony
Copy link

antony commented Jan 18, 2019

This can be done with the coercion feature in https://www.npmjs.com/package/flatley

@resistdesign
Copy link
Contributor

@hughsk I'm looking to encode each key as a URI Component, before interpolating / as a delimiter, in order to be completely safe with path delimitation. I would like to see the feature in this utility as well.

@resistdesign
Copy link
Contributor

@hughsk Here is the PR for this feature: #88

@resistdesign
Copy link
Contributor

@hughsk I think the transformKey feature closes this issue.

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

3 participants