A wrapper function like getJson<T> makes your code cleaner. It helps you avoid repeating yourself. It does not make your code safer. • Validate at the boundary. This is the most important step. Use a ...