added json response for user rest controller