| 52 | } |
| 53 | |
| 54 | type jsonEncoder struct { |
| 55 | *EncoderConfig |
| 56 | buf *buffer.Buffer |
| 57 | spaced bool // include spaces after colons and commas |
| 58 | openNamespaces int |
| 59 | |
| 60 | // for encoding generic values by reflection |
| 61 | reflectBuf *buffer.Buffer |
| 62 | reflectEnc ReflectedEncoder |
| 63 | } |
| 64 | |
| 65 | // NewJSONEncoder creates a fast, low-allocation JSON encoder. The encoder |
| 66 | // appropriately escapes all field keys and values. |
nothing calls this directly
no outgoing calls
no test coverage detected