PHP Service not returning json

hello,

I create a PHP service. Im returning an array as a json object using json_encode($object). The response message says Content-tpy: application/json. I guess this is being added to the response by dreamfactory. Howver, the client application actuall gets a string like this: “$object_value”. So there are ‘"’ envolving the json value which makes it a text/string and not a json object.

Can someone tell me why this happens? How can I deliver a json object instead of a string?

regards

I think this is a bug in dreamfactory: if the client set the header like this:

Accept: application/json

The client will get a string and not a json object. So I beeive dreamfactory is making a json_decode of my response which is already a json object… Can someone confirm this?

regards