Re: json_decode mistery

From: Date: Sat, 25 May 2013 08:26:42 +0000
Subject: Re: json_decode mistery
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-321206@lists.php.net to get a copy of this message
On Sat, May 25, 2013 at 3:21 AM, tamouse mailing lists <tamouse.lists@gmail.com> wrote: > On Sat, May 25, 2013 at 3:14 AM, tamouse mailing lists > <tamouse.lists@gmail.com> wrote: >> On Fri, May 24, 2013 at 2:06 AM, Radek Krejča <radek.krejca@starnet..cz> 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 second part was about. > > Perhaps there is actually something in $decrypted_data that is not > legal JSON data that doesn't appear when you echo it? try checking json_last_error() after you attempt to decode $decrypted_data.

« previous php.general (#321206) next »