I have looked at the other posts on this subject but nothing seemed to address this issue.
The following curl request works against our test database:
curl -XGET 'http://larry:larson@collection.aboutdrawing.org/service.php/find/ca_objects?q=*' -d '{"bundles" : { "ca_objects.access" : { "convertCodesToDisplayText" : true }, "ca_objects.status" : { "convertCodesToDisplayText" : true }, "ca_entities.entity_id" : {"returnAsArray" : true }}}'
However, my attempt to make this work in CF does not return the fields specified in the -d part of the curl request.
<cfoutput>
<cfset strFields = {"bundles" : { "ca_objects.access" : { "convertCodesToDisplayText" : true }, "ca_objects.status" : { "convertCodesToDisplayText" : true }, "ca_entities.entity_id" : {"returnAsArray" : true }}}>
<cfhttp url="http://larry:larson@collection.aboutdrawing.org/service.php/find/ca_objects?q=*"
method="get"
result="httpResp"
timeout="60"
useragent="#cgi.http_user_agent#">
<cfhttpparam type="body" value="#serializeJSON(strFields)#" >
</cfhttp>
<cfdump var="#httpResp#" >
</cfoutput>
Can anyone offer any insight?
Thank you