json validation added