Different versions of fromJSON.