added better debug function json_read/write now uses path qualfication added map_foreach, list_foreach