Fixed json_record_limit being interpreted as 0

Fixes json_record_limit being interpreted as 0, by parsing the configuration value as an integer.