A
A
Anton2017-06-13 08:06:52
PHP
Anton, 2017-06-13 08:06:52

Why breaks JSON response less than 10 lines?

Everything is fine with the encoding, the JSON response breaks less than 10 lines, more than 10 lines comes out fine.
api.rozavetrov.kz/GetCitiesFrom - This one breaks down, not all of it comes out, krakozyabry comes out (I can't see them in the links here) at the beginning and at the end.
api.rozavetrov.kz/GetCountries - This one is fine.
I output values ​​from the base, echo to the output, more than 10 lines the output is normal.
Both are the same.
Please help me find the problem, I have already broken my whole brain, I don’t see it.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
vintage, 2017-06-13
@vintage

The first link doesn't work. But I suspect the problem is in the BOM.

W
Wexter, 2017-06-13
@Wexter

on the first link you give data with a header
but the data itself is not compressed

K
Kirill Gorelov, 2017-06-14
@Kirill-Gorelov

is it via jsond_encode($arr, true)? or jsond_encode($arr). It's just that without the true parameter, the clothes sometimes break.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question