Open berglh opened 5 years ago
I'm decoding byte blobs of JSON lines with json.Decoder and trying to pretty print with json.MarshalIndent. The std library produces the expected output, but jsoniter outputs this:
{ "_source": { "@timestamp": "2018-10-07T15:01:48.442Z", "source": { "geoip": { "city_name": "Mosman", "country_name": "Australia", "location": { "lat": -33.839, "lon": 151.2396 }, "region_code": "NSW" } }, "user": { "service": "wOot", "uid": "1" } } } { "_source": { "@timestamp": "2018-10-07T15:01:48.441Z", "source": { "geoip": { "city_name": "Mosman", "country_name": "Australia", "location": { "lat": -33.839, "lon": 151.2396 }, "region_code": "NSW" } }, "user": { "service": "wOot", "uid": "1" } } }
+1
@mjnovice Could you pls show a complete test case with the definition of your struct to help us to analysis this issue?
I'm decoding byte blobs of JSON lines with json.Decoder and trying to pretty print with json.MarshalIndent. The std library produces the expected output, but jsoniter outputs this: