replase mode in JSON with r_mode_raise