Added JSON api for users