trying to use json_decode on utf8 json with MATLAB 2015

Job ID: 35927017

Budget: €8 – €30 EUR

I have a big json file (LAU_RG_01M_2021_4326.geojson) that i would like to decode in matlab using json_decode.
The decode fails because the file contains region names with some letters in local alphabet.

to have the matlab json_decode function working, the special caracter could be removed.

so for this project i need someone to write in matlab a script that process the json (or geojson) so that json_decode is possible.


For testing purpose, i have attached a smaller version of the geojson file in tmp.json so you can test quicker : keep in mind that the project will be completed when LAU_RG_01M_2021_4326.geojson can be loaded properly, not just tmp.json


here is a piece of code:

fileName='tmp.json';
str = fileread(fileName);
data = json_decode(str);

and the error i get:
Error using json_decode
Parse error at character 1023491:
perties": ...
Related categories: JSON MATLAB GeoJSON