L
L
leopardo112015-04-05 17:11:06
PHP
leopardo11, 2015-04-05 17:11:06

How to get unencoded data from json?

"[{\"keyword\":\"\\u0430\\u0447\\u043a\\u044b\\u0447\",\"value\":\" 1. \\u043e\\u0442\\u043c\\u044b\\u0447\\u043a\\u0430; \\u043f\\u0440\\u044f\\u043c., \\u043f\\u0435\\u0440\\u0435\\u043d. \\u043a\\u043b\\u044e\\u0447;\\n 2. \\u044e\\u0436\\u043d. \\u0437\\u0430\\u043c\\u043e\\u043a.\\n\",\"dictname\":\"\\u042e\\u0434\\u0430\\u0445\\u0438\\u043d \\u041a\\u044b\\u0440\\u0433\\u044b\\u0437\\u0441\\u043a\\u043e\\u21d2\\u0420\\u0443\\u0441\\u0441\\u043a\\u0438\\u0439 \\u0441\\u043b\\u043e\\u0432\\u0430\\u0440\\u044c\"},{\"keyword\":\"\\u0430\\u0447\\u043a\\u044b\\u0447\",\"value\":\"\\u043a\\u043b\\u0430\\u0432\\u0438\\u0448\\u0430\",\"dictname\":\"\\u041a\\u044b\\u0440\\u0433\\u044b\\u0437\\u0441\\u043a\\u043e-\\u0440\\u0443\\u0441\\u0441\\u043a\\u0438\\u0439 \\u0441\\u043b\\u043e\\u0432\\u0430\\u0440\\u044c \\u043a\\u043e\\u043c\\u043f. \\u0442\\u0435\\u0440\\u043c\\u0438\\u043d\\u043e\\u0432 Microsoft\"},{\"keyword\":\"\\u0430\\u0447\\u043a\\u044b\\u0447\",\"value\":\"\\u043a\\u043b\\u044e\\u0447\",\"dictname\":\"\\u041a\\u044b\\u0440\\u0433\\u044b\\u0437\\u0441\\u043a\\u043e-\\u0440\\u0443\\u0441\\u0441\\u043a\\u0438\\u0439 \\u0441\\u043b\\u043e\\u0432\\u0430\\u0440\\u044c \\u043a\\u043e\\u043c\\u043f. \\u0442\\u0435\\u0440\\u043c\\u0438\\u043d\\u043e\\u0432 Microsoft\"},{\"keyword\":\"\\u0430\\u0447\\u043a\\u044b\\u0447 \\u0441\\u04e9\\u0437\",\"value\":\"\\u043a\\u043b\\u044e\\u0447\\u0435\\u0432\\u043e\\u0435 \\u0441\\u043b\\u043e\\u0432\\u043e\",\"dictname\":\"\\u041a\\u044b\\u0440\\u0433\\u044b\\u0437\\u0441\\u043a\\u043e-\\u0440\\u0443\\u0441\\u0441\\u043a\\u0438\\u0439 \\u0441\\u043b\\u043e\\u0432\\u0430\\u0440\\u044c \\u043a\\u043e\\u043c\\u043f. \\u0442\\u0435\\u0440\\u043c\\u0438\\u043d\\u043e\\u0432 Microsoft\"},{\"keyword\":\"\\u0430\\u0447\\u043a\\u044b\\u0447\\u0447\\u044b\",\"value\":\" \\u043a\\u043b\\u044e\\u0447\\u0430\\u0440\\u044c, \\u043a\\u043b\\u044e\\u0447\\u043d\\u0438\\u043a (\\u0432 \\u043a\\u0438\\u0440\\u0433\\u0438\\u0437\\u0441\\u043a\\u043e\\u043c \\u0431\\u044b\\u0442\\u0443 \\u043d\\u0435 \\u0431\\u044b\\u043b\\u043e).\\n\",\"dictname\":\"\\u042e\\u0434\\u0430\\u0445\\u0438\\u043d \\u041a\\u044b\\u0440\\u0433\\u044b\\u0437\\u0441\\u043a\\u043e\\u21d2\\u0420\\u0443\\u0441\\u0441\\u043a\\u0438\\u0439 \\u0441\\u043b\\u043e\\u0432\\u0430\\u0440\\u044c\"}]"

I get this. but you need to take normal data

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Defman21, 2015-04-05
@leopardo11

json_decode
php.net/manual/en/function.json-decode.php

L
lnked, 2015-04-05
@lnked

json_encode( $arr, 					JSON_UNESCAPED_UNICODE				)

I
Ilya Korablev, 2015-04-05
@swipeshot

toster.ru/q/205148

F
FanatPHP, 2015-04-05
@FanatPHP

json_last_error

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question