compatibility with the latest json gem (1.7.7)