Fix json check on client