{"version":"1.0","type":"rich","title":"GeoJSON serialiser that doesn't explode your nested coordinate arrays","description":"This example demonstrates a custom GeoJSON serializer that keeps deeply nested coordinate arrays on a single line, avoiding the visual explosion caused by standard pretty-printing. It shows a MultiPolygon feature from RFC7946, with its `geometry.coordinates` array compactly formatted while other properties retain normal indentation. The code uses `JSON.stringify` with a custom `replacer` function that stringifies coordinate arrays, followed by a `replacerWrapper` that removes surrounding quotes. The output is identical to standard formatting except for the coordinates, making GeoJSON files more readable without sacrificing structure.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-e6af529ccedf0da0e52c191811e56f79?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}