georust / geozero

Zero-Copy reading and writing of geospatial data.
Apache License 2.0
321 stars 30 forks source link

properly escape JSON strings #209

Open michaelkirk opened 2 months ago

michaelkirk commented 2 months ago

It seems like we're a bit ad-hoc about escpaing JSON strings: https://github.com/georust/geozero/pull/208#discussion_r1567935158

Beyond quotes, there are other characters that also need to be escaped in valid JSON (tabs, newlines, backslashes)