iOS: update to take JSON object as parameter to call