Class to generate standarized responses for json responses