Improve range calculation per code review feedback
- Use iterator.next() directly instead of spreading into array
- Add early return and validation in getFormatRanges
- Improve documentation to clarify JsonRoot handling
Co-authored-by: fisker <172584+fisker@users.noreply.github.com>