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

Add "pathOf" to Json- and XmlPath #61

Closed
johanhaleby opened this issue Jul 20, 2015 · 0 comments
Closed

Add "pathOf" to Json- and XmlPath #61

johanhaleby opened this issue Jul 20, 2015 · 0 comments

Comments

@johanhaleby
Copy link
Collaborator

public static String pathOf(String... pathFragments) {         return 
StringUtils.join(pathFragments, ".");     

}

Usage:

from(json).getString(pathOf(SOME, THING));

instead of:
from(json).getString(String.format("%s.%s", SOME, THING));



Original issue reported on code.google.com by johan.ha...@gmail.com on 21 Oct 2011 at 8:48

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

No branches or pull requests

1 participant