Gets data from server via JSON success