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.
Merge pull request #592 from mfournier/bug-582

curl_json: also allow long callback names.