The most complete Format in vectorformats library. This class is designed to use the fastest available JSON library to encode/decode to/from GeoJSON strings.
Encode a list of features to a JSON object or string.
to_string determines whethr it should convert the result to a string or leave it as an object to be encoded later