-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add support to change Separator character #624
Comments
@brentpi, you can use |
My original data source is a bunch of OS X System Profiler Plist files that I'm reading into a dictionary. The format for SPStorageDataType is something like the following, so you can see why I requested this: _items.0."com.apple.corestorage.lv"."com.apple.corestorage.lv.encrypted" So, for my use case, changing the '.' to a '/' or a '|' would be helpful, as I would like to maintain nesting, but ignore the "com.apple.corestorage.lv" keys as "nested" keys. |
@brentpi That makes sense. How about this approach? It allows to pass property <- map["_items -> 0 -> com.apple.corestorage.lv -> com.apple.corestorage.lv.encrypted", delimiter: " -> "] |
Yeah, that sounds like a better option perhaps. |
By default in ObjectMapper, the Separator character used to navigate to sub-objects is ".", and the user is required to disable nesting if their object contains keys with a ".".
Potentially abstract the Separator character to a variable, so the user can change it to "|" or something less likely in their use case.
The text was updated successfully, but these errors were encountered: