add truncateId helper, support each iteration over jobjects
document truncateId helper