deal with old versions of JSON