|
@@ -92,12 +92,15 @@ binary string if fails find one.
|
|
|
|
|
|
|
|
|
<pre><code>
|
|
|
-encode_option() = native_utf8 | {float_format, [<a href="#type-float_format_option">float_format_option()</a>]} | {datetime_format, <a href="#type-datetime_encode_format">datetime_encode_format()</a>} | {object_key_type, string | scalar | value} | {space, non_neg_integer()} | {indent, non_neg_integer()}
|
|
|
+encode_option() = native_utf8 | canonical_form | {float_format, [<a href="#type-float_format_option">float_format_option()</a>]} | {datetime_format, <a href="#type-datetime_encode_format">datetime_encode_format()</a>} | {object_key_type, string | scalar | value} | {space, non_neg_integer()} | {indent, non_neg_integer()} | undefined_as_null
|
|
|
</code></pre>
|
|
|
|
|
|
`native_utf8`: <br />
|
|
|
- Encodes UTF-8 characters as a human-readable(non-escaped) string <br />
|
|
|
|
|
|
+`canonical_form`: <br />
|
|
|
+- produce a canonical form of a JSON document <br />
|
|
|
+
|
|
|
`{float_format, Optoins}`:
|
|
|
- Encodes a `float()` value in the format which specified by `Options` <br />
|
|
|
- default: `[{scientific, 20}]` <br />
|
|
@@ -122,6 +125,9 @@ encode_option() = native_utf8 | {float_format, [<a href="#type-float_format_opti
|
|
|
- Inserts a newline and `N` spaces for each level of indentation <br />
|
|
|
- default: `0` <br />
|
|
|
|
|
|
+`undefined_as_null`: <br />
|
|
|
+- Encodes atom `undefined` as null value <br />
|
|
|
+
|
|
|
|
|
|
|
|
|
### <a name="type-float_format_option">float_format_option()</a> ###
|