cut your code and replace with the following.
{
"type":"FeatureCollection",
"crs":{
"type":"name",
"properties":{
"name":"urn:ogc:def:crs:OGC:1.3:CRS84"
}
},
"features":[
{
"type":"Feature",
"properties":{
"gml_id":"1",
"ogc_fid":1,
"name":"Bordeaux",
"id":124
},
"geometry":{
"type":"Point",
"coordinates":[
-0.608315,
44.857522
]
}
},
{
"type":"Feature",
"properties":{
"gml_id":"2",
"ogc_fid":2,
"name":"Barbezieux",
"id":0
},
"geometry":{
"type":"Point",
"coordinates":[
-0.021418,
45.477577
]
}
}
]
}
you missed one curly braces that's why you getting error!!
Thanks..