validate and fix json format