Fix jsonarray parsing for user result and adding getAllUsers method