curl_json: also allow long callback names.

This is basically the same as 2f392819, which got applied to the
curl_xml plugin a few months ago.

Fixes #582.