Takeru Ohta 9 лет назад
Родитель
Сommit
7cf4b16e7e
3 измененных файлов с 3 добавлено и 3 удалено
  1. 1 1
      README.md
  2. 1 1
      doc/jsone.md
  3. 1 1
      src/jsone.erl

+ 1 - 1
README.md

@@ -1,4 +1,4 @@
-jsone (0.3.3)
+jsone (1.0.0)
 =============
 
 An Erlang library for encoding, decoding [JSON](http://json.org/index.html) data.

+ 1 - 1
doc/jsone.md

@@ -51,7 +51,7 @@ encode_option() = native_utf8 | {float_format, [<a href="#type-float_format_opti
 - `scalar`: In addition to `string`, following values are allowed: nulls, booleans, numerics (i.e. `json_scalar()` type) <br />
 - `value`: Any json compatible values are allowed (i.e. `json_value()` type) <br />
 - default: `string` <br />
-- NOTE: Non `json_string()` value is automatically converted to a `binary()` value (e.g. `1` => `<<"1">>`, `#{}` => `<<"{}">>`) <br />
+- NOTE: If `scalar` or `value` option is specified, non `json_string()` key will be automatically converted to a `binary()` value (e.g. `1` => `<<"1">>`, `#{}` => `<<"{}">>`) <br />
 
 `{space, N}`: <br />
 - Inserts `N` spaces after every commna and colon <br />

+ 1 - 1
src/jsone.erl

@@ -120,7 +120,7 @@
 %% - `scalar': In addition to `string', following values are allowed: nulls, booleans, numerics (i.e. `json_scalar()' type) <br />
 %% - `value': Any json compatible values are allowed (i.e. `json_value()' type) <br />
 %% - default: `string' <br />
-%% - NOTE: Non `json_string()' value is automatically converted to a `binary()' value (e.g. `1' => `<<"1">>', `#{}' => `<<"{}">>') <br />
+%% - NOTE: If `scalar' or `value' option is specified, non `json_string()' key will be automatically converted to a `binary()' value (e.g. `1' => `<<"1">>', `#{}' => `<<"{}">>') <br />
 %%
 %% `{space, N}': <br />
 %% - Inserts `N' spaces after every commna and colon <br />