ソースを参照

Document the use_nil option for encoding JSON

pull/110/merge
Paul J. Davis 9年前
コミット
c65273f8a4
1個のファイルの変更1行の追加0行の削除
  1. +1
    -0
      README.md

+ 1
- 0
README.md ファイルの表示

@ -71,6 +71,7 @@ The options for encode are:
* `force_utf8` - Force strings to encode as UTF-8 by fixing broken * `force_utf8` - Force strings to encode as UTF-8 by fixing broken
surrogate pairs and/or using the replacement character to remove surrogate pairs and/or using the replacement character to remove
broken UTF-8 sequences in data. broken UTF-8 sequences in data.
* `use_nil` - Encode's the atom `nil` as `null`.
* `escape_forward_slashes` - Escapes the `/` character which can be * `escape_forward_slashes` - Escapes the `/` character which can be
useful when encoding URLs in some cases. useful when encoding URLs in some cases.
* `{bytes_per_red, N}` - Refer to the decode options * `{bytes_per_red, N}` - Refer to the decode options

読み込み中…
キャンセル
保存