Trying to get JSON encoding working.