multi-path parse function by on-demand
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 the principle of OnDemand JsonIterator.getString, so I didn't use the OnDemand JsonIterator.getString method, but created two new methods(getObjectKey、getOrCompressAsString). Can you give me some guidance?
合并状态:未合并 0 条评论