Generally, when someone writes something, they do so in order to convey information in hopes of influencing belief that the data is true or worthy of being believed. John explicitly wrote his gospel toward that end by his selection of signs and statements in order to garner belief that leads to life.