makes JSON valid