basic json validation