fixed json validation issues