added curl_json() shortcut sub and allowed validate_int thresholds to be optional