Allow json gem version 1.8