Add example for array type

This commit is contained in:
Zhili Zhang 2021-04-01 23:35:00 -07:00
parent 0821062cf3
commit f66b25b66c
1 changed files with 1 additions and 0 deletions

View File

@ -113,6 +113,7 @@ sjson.Set(`{"key":true}`, "key", false)
sjson.Set(`{"key":true}`, "key", 1)
sjson.Set(`{"key":true}`, "key", 10.5)
sjson.Set(`{"key":true}`, "key", "hello")
sjson.Set(`{"key":true}`, "key", []string{"hello", "world"})
sjson.Set(`{"key":true}`, "key", map[string]interface{}{"hello":"world"})
```