document new flags
This commit is contained in:
parent
a6dee16904
commit
4581bca902
1 changed files with 12 additions and 0 deletions
|
@ -131,6 +131,18 @@ json has no official comments but some parsers allow c style comments. this flag
|
||||||
|
|
||||||
by default, both the encoder and decoder return strings as utf8 binaries appropriate for use in erlang. escape sequences that were present in decoded terms are converted into the appropriate codepoint and encoded terms are unaltered. this flag escapes strings for output in json, removing control codes and replacing them with the appropriate escapes
|
by default, both the encoder and decoder return strings as utf8 binaries appropriate for use in erlang. escape sequences that were present in decoded terms are converted into the appropriate codepoint and encoded terms are unaltered. this flag escapes strings for output in json, removing control codes and replacing them with the appropriate escapes
|
||||||
|
|
||||||
|
#### `dirty_strings` ####
|
||||||
|
|
||||||
|
json escaping is lossy, it mutates the json string and repeated application can result in unwanted behaviour. if your strings are already escaped (or you'd like to force invalid strings into "json") use this flag to bypass escaping
|
||||||
|
|
||||||
|
#### `ignore_bad_escapes` ####
|
||||||
|
|
||||||
|
during decoding, ignore unrecognized escape sequences and leave them as is in the stream
|
||||||
|
|
||||||
|
#### `relax` ####
|
||||||
|
|
||||||
|
relax is a synonym for `[loose_unicode, single_quotes, comments, ignore_bad_escapes]`
|
||||||
|
|
||||||
|
|
||||||
### <a name="incompletes">incomplete input</a> ###
|
### <a name="incompletes">incomplete input</a> ###
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue