Welcome Guest, Not a member yet? Register   Sign In
return an unescaped json
#1

Hi, i have some strings like 
Quote:["000"]
and with the classic $this->respond($mydata, 200) i can't unescape this. the json output is always "[\"000\"]"
I've also try
PHP Code:
    return $this->response->setStatusCode(200)
    ->setHeader('Content-Type''application/json')
    ->setBody(json_encode($mydataJSON_UNESCAPED_SLASHES)); 
but the result is the same.

Any suggestion?
Thanks in advance
Reply


Messages In This Thread
return an unescaped json - by leoz - 07-28-2020, 10:33 AM
RE: return an unescaped json - by jreklund - 08-01-2020, 06:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB