Browse Source

Update README.md

sile 11 years ago
parent
commit
715e3288c8
1 changed files with 17 additions and 4 deletions
  1. 17 4
      README.md

+ 17 - 4
README.md

@@ -32,10 +32,6 @@ $ make start
 [1,2,3]
 ```
 
-API
----
-[EDOCドキュメント](doc/jsone.md)
-
 使用例
 -----
 ```erlang
@@ -52,6 +48,23 @@ API
 
 ```
 
+Erlangの型とJSONの対応
+----------------------
+
+|         | Erlang                       | JSON            |
+|:-------:|-----------------------------:|----------------:|
+| number  |                          123 |             123 |
+| null    |                         null |            null |
+| boolean |                         true |            true |
+| string  |                    <<"abc">> |           "abc" |
+| array   |                      [1,2,3] |         [1,2,3] |
+| object  | {[{<<"key">>, <<"value">>}]} | {"key":"value"} |
+
+
+API
+---
+[EDOCドキュメント](doc/jsone.md)
+
 参考
 ----
 - [JSON](http://www.json.org/)