Compatibility layer for newer versions of the JSON gem