I have a JSON file with 2 JSON-Arrays in it: One Array for routes and one Array for sights.
A route should consist of several sights where the user gets navigated to
In my case the problem occured from php file. It gave unwanted characters.That is why a json parsing problem occured.
php
json parsing
Then I paste my php code in Notepad++ and select Encode in utf-8 without BOM from Encoding tab and running this code-
php code
Notepad++
Encode in utf-8 without BOM
Encoding
My problem gone away.