Changed from_json to decode_json as JSON::XS no longer supports from_json