forked from mirror/sjson
Add example for array type
This commit is contained in:
parent
0821062cf3
commit
f66b25b66c
|
@ -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"})
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue