I'm manipulating GeoJSON objects in a web application. Leaflet accepts the POJOs with the correct GeoJSON format.
But I'd like to use a specific library that creates those POJOs, taking care of the format specification. A library that provides a solid Object Oriented interface.
I receive my data from a REST API and I need to manually create the GeoJSON objects. I think it is not robust to just use simple JS objects. So, I'd love to have a library that supports that part of the work.
I can't specify more about the data format. The only thing I can say is that I get all that's necessary to create GeoJSON objects. The question aims to find a general purpose library. For example in Python, I'd use something like this: https://github.com/frewsxcv/python-geojson