Added missing param for curl_errno()

And fixed syntax bug in bpJSONdecode()