add highlight json and errormsg output