I am trying to load Geojson string into R, which was stored as a character string in CSV and then declare it as geojson by
as.geojson
function. But the json validation is failing as shown.
> geo2_geojson <- geojson::as.geojson(test1)
Error in geojson::as.geojson(test1) : jsonlite::validate(x) is not TRUE
I tried different ways of declaring it as geojson, but was unsuccessful. Can someone help me in solving this issue or Please free to suggest any efficient method if any knows.