-
Notifications
You must be signed in to change notification settings - Fork 397
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
Refactor JSON Pointer code to be more self-contained #38
Comments
Agreed, the current code has many adherences which make it uneasy to reuse:
And tree resolving is heavily JsonNode-dependent. And as a more general rule, the code is quite complicated. As a first step, the plan is to split this class into two disctinct classes:
This would simplify matters a lot:
@Override
public String toString()
{
final String ret = "";
for (final ReferenceToken token: tokens)
ret += '/' + token;
return ret;
} That is not all: the current class' So: code simplification, more portable and adaptable. A win win. Will do it. |
This leaves one question open, however: even with this refactoring, the code will be dependent on
Meh. I'll do a first implementation and then we'll see what's what. |
See here: |
It would be nice to make existing JSON pointer more self-contained, to make it easier to reuse -- I am hoping to try to build JSON Pointer support for Jackson, either in core or as add-on module.
The text was updated successfully, but these errors were encountered: