Added classes to provide a jsonResponse for consistent formatting.