Re: [PHP] json_decode mistery

2013-05-25 Thread Matijn Woudt
On Fri, May 24, 2013 at 9:06 AM, Radek Krejča wrote: > Hello, I am usin json regulary, but in one script I have mistery: > > echo($decrypted_data)."\n\n"; > var_dump(json_decode($decrypted_data, true)); > echo "\n"; > var_dump(json_decode('{"result_ok":true,"result_message":null,"client_name":"Rad

Re: [PHP] json_decode mistery

2013-05-25 Thread tamouse mailing lists
On Sat, May 25, 2013 at 3:21 AM, tamouse mailing lists wrote: > On Sat, May 25, 2013 at 3:14 AM, tamouse mailing lists > wrote: >> On Fri, May 24, 2013 at 2:06 AM, Radek Krejča >> wrote: >>> {"result_ok":true,"result_message":null,"client_name":"Radek Krej\u010da"} >> >> How odd -- when i run t

Re: [PHP] json_decode mistery

2013-05-25 Thread tamouse mailing lists
On Sat, May 25, 2013 at 3:14 AM, tamouse mailing lists wrote: > On Fri, May 24, 2013 at 2:06 AM, Radek Krejča wrote: >> {"result_ok":true,"result_message":null,"client_name":"Radek Krej\u010da"} > > How odd -- when i run that through json_decode, it works fine: Which I now see was what the secon

Re: [PHP] json_decode mistery

2013-05-25 Thread tamouse mailing lists
On Fri, May 24, 2013 at 2:06 AM, Radek Krejča wrote: > {"result_ok":true,"result_message":null,"client_name":"Radek Krej\u010da"} How odd -- when i run that through json_decode, it works fine: $d = '{"result_ok":true,"result_message":null,"client_name":"Radek Krej\u010da"}'; echo "Initial: $d\n"

[PHP] json_decode mistery

2013-05-24 Thread Radek Krejča
Hello, I am usin json regulary, but in one script I have mistery: echo($decrypted_data)."\n\n"; var_dump(json_decode($decrypted_data, true)); echo "\n"; var_dump(json_decode('{"result_ok":true,"result_message":null,"client_name":"Radek Krej\u010da"}', true)); I got: {"result_ok":true,"result_me