RsD0p9BK
2/21/2017 - 6:09 AM

json_encode.php

echo json_encode($json, JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT);

/* Bitmask consisting of JSON_HEX_QUOT, JSON_HEX_TAG, JSON_HEX_AMP, JSON_HEX_APOS, JSON_NUMERIC_CHECK, JSON_PRETTY_PRINT, JSON_UNESCAPED_SLASHES, JSON_FORCE_OBJECT, JSON_PRESERVE_ZERO_FRACTION, JSON_UNESCAPED_UNICODE, JSON_PARTIAL_OUTPUT_ON_ERROR. The behaviour of these constants is described on the JSON constants page. */

// http://php.net/manual/en/function.json-encode.php
// http://ru.stackoverflow.com/questions/37998/кириллица-в-json_encode