Browse Source

Update documents

Takeru Ohta 10 years ago
parent
commit
10904e17b7
2 changed files with 6 additions and 5 deletions
  1. 2 1
      README.md
  2. 4 4
      src/jsone.erl

+ 2 - 1
README.md

@@ -3,6 +3,7 @@ jsone (0.2.3)
 
 An Erlang library for encoding, decoding [JSON](http://json.org/index.html) data.
 
+
 Features
 --------
 - Provides simple encode/decode function only
@@ -94,7 +95,7 @@ Usage Example
 ```
 
 
-Data Mapping (Erlang<=> JSON)
+Data Mapping (Erlang <=> JSON)
 -------------------------------
 
 |         | Erlang                       | JSON            |

+ 4 - 4
src/jsone.erl

@@ -65,7 +65,7 @@
 %% ```
 %% > jsone:decode(<<"1">>).
 %% 1
-%%
+%% 
 %% > jsone:decode(<<"wrong json">>).
 %% ** exception error: bad argument
 %%     in function  jsone_decode:number_integer_part/4
@@ -87,7 +87,7 @@ decode(Json) ->
 %% ```
 %% > jsone:try_decode(<<"[1,2,3] \"next value\"">>).
 %% {ok,[1,2,3],<<" \"next value\"">>}
-%%
+%%  
 %% > jsone:try_decode(<<"wrong json">>).
 %% {error,{badarg,[{jsone_decode,number_integer_part,
 %%                               [<<"wrong json">>,1,[],<<>>],
@@ -104,7 +104,7 @@ try_decode(Json) ->
 %% ```
 %% > jsone:encode([1, null, 2]).
 %% <<"[1,null,2]">>
-%%
+%%  
 %% > jsone:encode([1, hoge, 2]).  % 'hoge' atom is not a json value
 %% ** exception error: bad argument
 %%      in function  jsone_encode:value/3
@@ -126,7 +126,7 @@ encode(JsonValue) ->
 %% ```
 %% > jsone:try_encode([1, null, 2]).
 %% {ok,<<"[1,null,2]">>}
-%%
+%%  
 %% > jsone:try_encode([1, hoge, 2]).  % 'hoge' atom is not a json value
 %% {error,{badarg,[{jsone_encode,value,
 %%                               [hoge,[{array_values,[2]}],<<"[1,">>],