fix typo and added JSON::XS