-
Notifications
You must be signed in to change notification settings - Fork 74
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
Feature: Pass accessor path to gsub #117
Comments
Hey! Sure thing. :) |
That's great! Is there any way I can assist or help speed up when this might be available? It looks like it's a case of passing down and maintaining an additional parameter to the enumerable#each method, but I don't yet know JSONPath well enough to be exactly sure what the appropriate operation is to the the accessor path, for each JSONPath token. |
Dunno yet. I need to take a closer look first. :) |
sorry, I'm going to a new workplace so I'm swamp at the moment. I took a quick look and I'm unsure yet how to do this properly. :) any suggestion is welcomed. :D |
That's quite alright, @Skarlso. I certainly know how it is to be swamped at work. My understanding is #each is called recursively with the current
It would then be a case of ensure all references to I'm aware this is where it gets tricky - reliably establishing the correct way to join the string based on object types: Does this sound in line with your expectations (or does it have an immediate and obvious flaw)? |
@greena13 Sounds good! I'll try to implement it. :) |
Hi @Skarlso,
Thanks for the great library! My particular application uses the
gsub
function and I am really missing the ability to record or operate on the path to the matched attribute. It would be great if this was passed as a second parameter to the handler function. For example:Thanks.
The text was updated successfully, but these errors were encountered: