fixed element stack in JsonML reader