Problem using cURL & PHP to update custom field values on task

Hi everyone. I’m attempting to use the php curl library to make updates to the custom field values on my task.

I am receiving an error which reads:
message":“Could not parse request data, invalid JSON”

This is the json_encoded data that I am attempting to send to the API:


It looks like valid JSON to me, and my JSONView browser extension displays it as JSON.

Does anyone know why the Asana API wont accept my data?

Please let me know if more information is needed to troubleshoot this problem.



The code formatting is all broken. Did you try to run it through for example?

Try using the format shown here to submit your custom field data: