curl_json plugin: avoid unlikely overrun