JsonCollectionParser
JsonCollectionParser copied to clipboard
Support for parsing progress
JsonStreamingParser is able to report progress of file parsing. It will be really handful to have this progress, because processing of large file can take a lot of time.
The only what you need is to add function "filePosition" to your Listener and add propagate progress values to callback (or add another callback).
@peterpp Sorry for such a long silence, I will try to implement this soon.
@peterpp Currently all that parser can do - just pass lineNumber
and charNumber
. We can't even calculate progress percentage. Any thoughts on how line numbers and/or char numbers can be helpful?
Just had to implement this in https://github.com/p1ratrulezzz/JsonCollectionParser/commit/b6c1563c7ac3b5519c364b7b30369e22bfe6806d#diff-1041b02aae148a89853dc0d2710afc9cR194
At least it works with files, maybe can be helpful