Fixes infinite loop on JSON