How do you be sarcastic in Japanese?


Especially in text, is there a clue in Japanese as to whether someone is being
sarcastic, or is it as ambiguous as it is in English? And how do you form a
sentence so as to make it obviously sarcastic?

Thank you very much.

