in reply to String to Integer, for json file

See the links in Re: Parsing a hash of hashes using a schema file and use an enforcer to coerce various values to numbers ( Data::Visitor::Callback )