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

multi-path parse function by on-demand #63

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

heykirby
Copy link

@heykirby heykirby commented Nov 26, 2024

hello, piotrrzysko, thank you for your guidance. I implemented the function to parse values ​​on multiple json paths at the same time, based on OnDemandJsonIterator.
Advantages of PathsBasedJsonParser

  • Avoid json node repeated construction
  • Can specify the json node value type, the default is string type(If a json node is list or object type, only string type can be returned)
  • Can parse object and array values ​​at the same time
    I don't understand how to user OnDemand JsonIterator.getString, so I don't use it, and to create two new methods instead(getObjectKey、getOrCompressAsString). Can you give me some guidance?

@heykirby heykirby force-pushed the feature_path_based_parser branch from 050c1a6 to 7d6ab9e Compare November 27, 2024 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant