Commented and refactored jsonitem.h