SetMarshalJSONNumbers forces the encoder to serialize `json.Number` as a float or integer instead of relying on TextMarshaler to emit a string. *Unstable:* This method does not follow the compatibility guarantees of semver. It can be changed or removed without a new major version being issued.
(indent bool)
| 106 | // semver. It can be changed or removed without a new major version being |
| 107 | // issued. |
| 108 | func (enc *Encoder) SetMarshalJSONNumbers(indent bool) *Encoder { |
| 109 | enc.marshalJSONNumbers = indent |
| 110 | return enc |
| 111 | } |
| 112 | |
| 113 | // Encode writes a TOML representation of v to the stream. |
| 114 | // |
no outgoing calls