I'm trying to parse data from json but something is wrong. Terminal console says:
Performing hot restart...
Restarted application in 1.659ms.
I/flutter ( 9594): Load xd en
I/flutter ( 9594): Exception: FormatException: Unexpected end of input (at character 1)
I/flutter ( 9594):
I/flutter ( 9594): ^
I/flutter ( 9594): /0
I/flutter ( 9594): error: 0
My json can be found here: link
But at this link it works when I try to parse data from json, and both json's looks same. ( at this one I do not have access to PHP file)
I did json print as usually, like this:
$myJson = ['op'=>true,'msg'=>'','data'=>['pages'=>3538,'page'=>(int)$stranica,'news'=>$api]];
print_r(json_encode($myJson));
Is there any trick/hack about this? Am I missing something?