mapper icon indicating copy to clipboard operation
mapper copied to clipboard

How to handle keys with "."

Open walsht opened this issue 7 years ago • 3 comments

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?

walsht avatar Jan 06 '19 13:01 walsht

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.

keith avatar Jan 06 '19 18:01 keith

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

walsht avatar Jan 07 '19 16:01 walsht

That wouldn't be ideal but it's worth a try. I'm not sure if our string splitting logic would catch that.

-- Keith Smiley

On Jan 7, 2019, at 08:09, Tim Walsh [email protected] wrote:

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

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

keith avatar Jan 07 '19 16:01 keith