Added function for return user info as json