........S. [ZBX-8926] fixed premature exit condition in json parsing that would cause an off-by-one error