Add some convenient JSON response types and methods.