added @param types for jsonResponse method