versions < 1.8.2 of the json gem do not compile on ruby 2.2. See ruby/json#229
arista-eapi pins json to 1.7.7: https://github.com/imbriaco/arista-eapi/blob/master/arista-eapi.gemspec#L25
Is pinning it required? If not, could the pin be adjusted/removed?