Answer the question
In order to leave comments, you need to log in
Json_decode returns NULL
Hi
I have this json. When I use json_decode I get NULL output. What could be the reasons?
Checked json is valid.
{"0":"u041cu0430u043au0441u0438u043cu0443u043c u2014 3 u0441u043eu0437u0430u0435u043cu0449u0438u043au0430 (u0432u043au043bu044eu0447u0430u044f u043eu0441u043du043eu0432u043du043eu0433u043e). u041fu0440u0438 u0441u043eu043eu0442u0432u0435u0442u0441u0442u0432u0438u0438 u0438u043bu0438 u043du0435u0441u043eu043eu0442u0432u0435u0442u0441u0442u0432u0438u0438 u0442u0440u0435u0431u043eu0432u0430u043du0438u044fu043c u0414u043eu0433u043eu0432u043eu0440u0430 u0438u043fu043eu0442u0435u0447u043du043eu0433u043e u0441u0442u0440u0430u0445u043eu0432u0430u043du0438u044f u0438 u043fu0440u0438 u043du0435u043fu0440u0438u0441u043eu0435u0434u0438u043du0435u043du0438u0438 u043a u0414u043eu0433u043eu0432u043eu0440u0443 u0438u043fu043eu0442u0435u0447u043du043eu0433u043e u0441u0442u0440u0430u0445u043eu0432u0430u043du0438u044f u0438u043bu0438 u043du0435 u0437u0430u043au043bu044eu0447u0435u043du0438u0438 u0438u043du0434u0438u0432u0438u0434u0443u0430u043bu044cu043du043eu0433u043e u0434u043eu0433u043eu0432u043eu0440u0430 u043bu0438u0447u043du043eu0433u043e u0441u0442u0440u0430u0445u043eu0432u0430u043du0438u044f + 3,0%"}
Answer the question
In order to leave comments, you need to log in
php 5.5 - everything works
sandbox.onlinephpfunctions.com/code/a914def92b5817...
Check the input for json_decode
it's likely that
$data contains non JSON
---
otherwise it's fantastic :)
it's not valid json. It is obvious that you have disappeared all \ before u
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question