fix segment highlighting in JSON issue