Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

How to handle keys with "." #157

Open
walsht opened this issue Jan 6, 2019 · 3 comments
Open

How to handle keys with "." #157

walsht opened this issue Jan 6, 2019 · 3 comments

Comments

@walsht
Copy link

walsht commented Jan 6, 2019

I am trying to map a dictonary where the keys have ".", for example
"gcm.message_id": 2002

How can I use the Mapper to not see those "." as a path?

@keith
Copy link
Contributor

keith commented Jan 6, 2019

There isn't curreny a way to do this. I'm not sure what the best way to add this would be. Maybe by first checking if the key exists and then falling back to the nested path. That would technically be a breaking change but it's unlikely anyone would have conflicts like that I think.

@walsht
Copy link
Author

walsht commented Jan 7, 2019

@keith Thank you... wonder if encoding the "." == %2E would work

@keith
Copy link
Contributor

keith commented Jan 7, 2019 via email

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

No branches or pull requests

2 participants