curl_json plugin: warn when config expects a map and a number is provided
authorJim Radford <radford@galvanix.com>
Wed, 14 Aug 2013 00:57:58 +0000 (17:57 -0700)
committerJim Radford <radford@galvanix.com>
Wed, 14 Aug 2013 00:58:20 +0000 (17:58 -0700)
commita5520423233b4ead083030661a256058db562564
treebe09e464e080097b3abe0b95ef9b508dd9fce389
parent5e8ef5f45ef2fcd6f8ffbf67b8bf2250f1753923
curl_json plugin: warn when config expects a map and a number is provided

Moves the warning for strings in the number callback which was being called anyway.

This also serves to fix parsing numbers represented as JSON strings which was inadvertantly broken when adding array support.
src/curl_json.c