is it ok to say "What's it?" instead of "What is it?"
grammatically, which one is correct?
I don't know about whether it's incorrect grammatically, but it's certainly not idiomatic to say "What's it?" It's "What is it?"
You can, however, say "What's that?"