Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't parse the response in Json #1

Open
geradseth opened this issue Jul 10, 2022 · 0 comments
Open

Can't parse the response in Json #1

geradseth opened this issue Jul 10, 2022 · 0 comments

Comments

@geradseth
Copy link

SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 3228 of the JSON data,
response seems to have trailing 1 in raw data response.

//=>Raw Data Responses
[{"id":1,"name":"Shinyanga","code":"37","created_at":"2021-11-07T15:18:52.000000Z","updated_at":"2021-11-07T15:18:52.000000Z"},{"id":2,"name":"Mara","code":"31","created_at":"2021-11-07T15:19:00.000000Z","updated_at":"2021-11-07T15:19:00.000000Z"},{"id":3,"name":"Dar-es-salaam","code":"11","created_at":"2021-11-07T15:19:07.000000Z","updated_at":"2021-11-07T15:19:07.000000Z"},{"id":4,"name":"Kilimanjaro","code":"25","created_at":"2021-11-07T15:19:09.000000Z","updated_at":"2021-11-07T15:19:09.000000Z"},{"id":5,"name":"Kagera","code":"35","created_at":"2021-11-07T15:19:14.000000Z","updated_at":"2021-11-07T15:19:14.000000Z"},{"id":6,"name":"Tanga","code":"21","created_at":"2021-11-07T15:19:24.000000Z","updated_at":"2021-11-07T15:19:24.000000Z"},{"id":7,"name":"Mwanza","code":"33","created_at":"2021-11-07T15:19:35.000000Z","updated_at":"2021-11-07T15:19:35.000000Z"},{"id":8,"name":"Tabora","code":"45","created_at":"2021-11-07T15:19:44.000000Z","updated_at":"2021-11-07T15:19:44.000000Z"},{"id":9,"name":"Kigoma","code":"47","created_at":"2021-11-07T15:19:54.000000Z","updated_at":"2021-11-07T15:19:54.000000Z"},{"id":10,"name":"Pwani","code":"61","created_at":"2021-11-07T15:19:58.000000Z","updated_at":"2021-11-07T15:19:58.000000Z"},{"id":11,"name":"Ruvuma","code":"57","created_at":"2021-11-07T15:20:02.000000Z","updated_at":"2021-11-07T15:20:02.000000Z"},{"id":12,"name":"Mtwara","code":"63","created_at":"2021-11-07T15:20:11.000000Z","updated_at":"2021-11-07T15:20:11.000000Z"},{"id":13,"name":"Morogoro","code":"67","created_at":"2021-11-07T15:20:20.000000Z","updated_at":"2021-11-07T15:20:20.000000Z"},{"id":14,"name":"Rukwa","code":"55","created_at":"2021-11-07T15:20:29.000000Z","updated_at":"2021-11-07T15:20:29.000000Z"},{"id":15,"name":"Katavi","code":"50","created_at":"2021-11-07T15:20:35.000000Z","updated_at":"2021-11-07T15:20:35.000000Z"},{"id":16,"name":"Simiyu","code":"39","created_at":"2021-11-07T15:20:38.000000Z","updated_at":"2021-11-07T15:20:38.000000Z"},{"id":17,"name":"Geita","code":"30","created_at":"2021-11-07T15:20:44.000000Z","updated_at":"2021-11-07T15:20:44.000000Z"},{"id":18,"name":"Arusha","code":"23","created_at":"2021-11-07T15:20:50.000000Z","updated_at":"2021-11-07T15:20:50.000000Z"},{"id":19,"name":"Iringa","code":"51","created_at":"2021-11-07T15:20:54.000000Z","updated_at":"2021-11-07T15:20:54.000000Z"},{"id":20,"name":"Mbeya","code":"53","created_at":"2021-11-07T15:21:00.000000Z","updated_at":"2021-11-07T15:21:00.000000Z"},{"id":21,"name":"Njombe","code":"59","created_at":"2021-11-07T15:21:08.000000Z","updated_at":"2021-11-07T15:21:08.000000Z"},{"id":22,"name":"Manyara","code":"27","created_at":"2021-11-07T15:21:12.000000Z","updated_at":"2021-11-07T15:21:12.000000Z"},{"id":23,"name":"Lindi","code":"65","created_at":"2021-11-07T15:21:17.000000Z","updated_at":"2021-11-07T15:21:17.000000Z"},{"id":24,"name":"Singida","code":"43","created_at":"2021-11-07T15:21:24.000000Z","updated_at":"2021-11-07T15:21:24.000000Z"},{"id":25,"name":"Songwe","code":"54","created_at":"2021-11-07T15:21:29.000000Z","updated_at":"2021-11-07T15:21:29.000000Z"},{"id":26,"name":"Dodoma","code":"41","created_at":"2021-11-07T15:21:33.000000Z","updated_at":"2021-11-07T15:21:33.000000Z"}]1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant