.......PS. [ZBX-8048] implemented a new function zbx_json_next_value_dyn(); rewrote code for using the new function