Browse Source

update example

yowcow 5 years ago
parent
commit
16b87eccc3
1 changed files with 4 additions and 2 deletions
  1. 4 2
      README.md

+ 4 - 2
README.md

@@ -132,8 +132,8 @@ Usage Example
 <<"null">>
 
 %% Pretty Print
-> Data = [true, #{<<"1">> => 2, <<"array">> => [[[[1]]], #{<<"ab">> => <<"cd">>}, false]}, null].
-> io:format("~s\n", [jsone:encode(Data, [{indent, 1}, {space, 2}])]).
+> Data = [true, #{<<"1">> => 2, <<"array">> => [[[[1]]], #{<<"ab">> => <<"cd">>}, [], #{}, false]}, null].
+> io:format("~s\n", [jsone:encode(Data, [{indent, 2}, {space, 1}])]).
 [
   true,
   {
@@ -149,6 +149,8 @@ Usage Example
       {
         "ab": "cd"
       },
+      [],
+      {},
       false
     ]
   },