curl_json plugin: support arrays
authorJim Radford <radford@galvanix.com>
Sat, 10 Aug 2013 17:25:02 +0000 (10:25 -0700)
committerJim Radford <radford@galvanix.com>
Sat, 10 Aug 2013 17:33:28 +0000 (10:33 -0700)
commitf1e1e37ead10d17dd30ca1992d64335f9c53c838
treec8ef8b327ad64aaac7b5a8d3ad681d48d8140bfa
parentba0be16485d017e2060bc3a1fef2cb0587a5336d
curl_json plugin: support arrays

Allow access to data in JSON arrays.  For example

    { workers: [ { requests: 10 }, { requests: 10 } ] }

can all be accessed with

    workers/*/requests

or just one by using the index.

    workers/1/requests
src/curl_json.c