Why would this echo \"NULL\"? In my would it would be decoded to an empty array.
Is it something obvious I\'m missing?
If your data includes some \n json_decode might fail silently too.
\n