Check if body is a text, JSON or binary data