Changed first preference and twocandidate JSON formats