i simple added a convertion of datatype

The geojson created from the script is invalid because add the double quotes for the latitude and logitude.
With this simple conversion, now you obtain a usable geojson.